/* ============================================
   ANNOUNCEMENT BANNER STYLES
   Replaces deprecated <marquee> tag
   ============================================ */

.announcement-banner {
    background: linear-gradient(135deg, #393E46 0%, #222831 100%);
    color: var(--white);
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 173, 181, 0.3);
}

.announcement-wrapper {
    display: flex;
    animation: scroll-announcement 20s linear infinite;
    white-space: nowrap;
}

.announcement-text {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.announcement-text i {
    color: var(--accent);
}

/* Pause animation on hover for readability */
.announcement-banner:hover .announcement-wrapper {
    animation-play-state: paused;
}

@keyframes scroll-announcement {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .announcement-wrapper {
        animation: none;
    }

    .announcement-text {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   IMPROVED PRODUCT CARD STYLES
   For product_fragment layout standardization
   ============================================ */

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(34, 40, 49, 0.15);
    border-color: #00ADB5;
}

.product-card-img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: var(--gray-50);
    padding: 1rem;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}


.product-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-card:hover .product-card-title {
    color: #00ADB5;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-card-rating small {
    color: var(--gray-500);
}

.product-card-price {
    margin-top: auto;
}

.product-card-price .original-price {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: var(--font-size-sm);
}

.product-card-price .sale-price {
    color: var(--danger);
    font-weight: var(--font-bold);
    font-size: var(--font-size-lg);
}

.product-card-price .regular-price {
    color: var(--gray-800);
    font-weight: var(--font-semibold);
    font-size: var(--font-size-lg);
}

/* ============================================
   SEARCH RESULTS EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.empty-state-message {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTON ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.btn:focus,
.btn:focus-visible,
.product-name:focus,
.product-name:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   FOOTER IMPROVEMENTS
   ============================================ */

footer .nav-link {
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

footer .nav-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

footer .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 767px) {
    .product-card-img {
        height: 160px;
    }

    .product-card-body {
        padding: 0.75rem;
    }

    .product-card-title {
        font-size: 0.78rem;
    }

    .announcement-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .product-card-img {
        height: 140px;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }
}

/* ============================================
   PAGE SECTION DIVIDER
   ============================================ */
.page-section-divider {
    border-bottom: 3px solid var(--gray-200);
    margin: 0;
    padding: 0;
}

/* ============================================
   MICRO-INTERACTIONS & ANIMATIONS
   ============================================ */
.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease !important;
}

.btn:active {
    transform: scale(0.96) !important;
}

input.form-control:focus,
select.form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 173, 181, 0.25) !important;
    border-color: var(--primary) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ============================================
   ORDER SUCCESS / COMPLETED PAGE
   ============================================ */

.order-success {
    max-width: 640px;
    margin: 2rem auto 3rem;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

/* Animated Checkmark */
.order-success__animation {
    margin-bottom: 1.5rem;
}

.order-success__checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.order-success__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success, #16A34A);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.order-success__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--success, #16A34A);
    stroke-linecap: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Title */
.order-success__title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900, #1A1E25);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.5s ease 0.6s both;
}

.order-success__subtitle {
    color: var(--gray-500, #757575);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease 0.7s both;
}

/* Detail Card */
.order-success__details {
    animation: fadeInUp 0.5s ease 0.8s both;
    margin-bottom: 1.5rem;
}

.order-success__detail-card {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-md);
}

.order-success__detail-header {
    background: var(--gray-50, #EEEEEE);
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-800, #222831);
    border-bottom: 1px solid var(--gray-200, #D5D5D5);
}

.order-success__detail-header i {
    color: var(--primary, #00ADB5);
    font-size: 1.1rem;
}

.order-success__detail-body {
    padding: 1.25rem;
}

.order-success__detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.order-success__label {
    color: var(--gray-500, #757575);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.order-success__value {
    color: var(--gray-800, #222831);
    font-size: 0.9rem;
    text-align: right;
}

.order-success__address {
    line-height: 1.5;
    font-size: 0.85rem;
}

.order-success__divider {
    margin: 0.75rem 0;
    border-color: var(--gray-200, #D5D5D5);
}

/* Order Items */
.order-success__items {
    max-height: 300px;
    overflow-y: auto;
}

.order-success__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100, #E8E8E8);
}

.order-success__item:last-child {
    border-bottom: none;
}

.order-success__item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--gray-200, #D5D5D5);
    background: var(--gray-50, #EEEEEE);
    flex-shrink: 0;
}

.order-success__item-info {
    flex: 1;
    min-width: 0;
}

.order-success__item-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800, #222831);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-success__item-qty {
    font-size: 0.8rem;
    color: var(--gray-500, #757575);
}

.order-success__item-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800, #222831);
    flex-shrink: 0;
}

/* Total Row */
.order-success__total-row {
    padding-top: 0.75rem;
}

.order-success__total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary, #00ADB5);
}

/* Email Notice */
.order-success__notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-light, #E0F7FA);
    color: var(--primary-dark, #008B92);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg, 12px);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease 0.9s both;
}

.order-success__notice i {
    font-size: 1.1rem;
}

/* Action Buttons */
.order-success__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 1s both;
}

.order-success__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg, 12px);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.order-success__btn--primary {
    background: var(--primary, #00ADB5);
    color: var(--white, #fff);
    box-shadow: 0 4px 14px rgba(0, 173, 181, 0.35);
}

.order-success__btn--primary:hover {
    background: var(--primary-hover, #009DA5);
    color: var(--white, #fff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 173, 181, 0.4);
}

.order-success__btn--secondary {
    background: transparent;
    color: var(--gray-700, #393E46);
    border: 2px solid var(--gray-300, #BDBDBD);
}

.order-success__btn--secondary:hover {
    border-color: var(--primary, #00ADB5);
    color: var(--primary, #00ADB5);
    transform: translateY(-2px);
}

/* Confetti */
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    opacity: 0;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(600px) rotate(720deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Mobile adjustments */
@media (max-width: 575px) {
    .order-success__title {
        font-size: 1.5rem;
    }

    .order-success__actions {
        flex-direction: column;
    }

    .order-success__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   MY ORDERS PAGE — Card-Based Redesign
   ============================================ */

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0 1rem;
}

.orders-header__title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900, #1A1E25);
    margin: 0;
}

.orders-search__wrapper {
    position: relative;
    min-width: 220px;
}

.orders-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400, #9E9E9E);
    font-size: 0.85rem;
}

.orders-search__input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.25rem;
    border: 1px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white, #fff);
}

.orders-search__input:focus {
    outline: none;
    border-color: var(--primary, #00ADB5);
    box-shadow: 0 0 0 3px rgba(0, 173, 181, 0.15);
}

/* Sort Pills */
.orders-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.orders-sort__label {
    color: var(--gray-500, #757575);
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

.orders-sort__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600, #616161);
    background: var(--gray-50, #EEEEEE);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.orders-sort__pill:hover {
    color: var(--primary, #00ADB5);
    background: var(--primary-light, #E0F7FA);
}

.orders-sort__pill--active {
    color: var(--primary, #00ADB5);
    background: var(--primary-light, #E0F7FA);
    border-color: var(--primary, #00ADB5);
    font-weight: 600;
}

/* Order Cards */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-card {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary, #00ADB5);
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--gray-50, #EEEEEE);
    border-bottom: 1px solid var(--gray-200, #D5D5D5);
}

.order-card__id {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.order-card__label {
    color: var(--gray-500, #757575);
    font-size: 0.85rem;
}

.order-card__number {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800, #222831);
}

/* Status Badges */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status-badge--new {
    background: #E8F5E9;
    color: #2E7D32;
}

.order-status-badge--paid {
    background: #E3F2FD;
    color: #1565C0;
}

.order-status-badge--processing {
    background: #FFF8E1;
    color: #F57F17;
}

.order-status-badge--shipping {
    background: #E0F7FA;
    color: #00838F;
}

.order-status-badge--delivered {
    background: #E8F5E9;
    color: #2E7D32;
}

.order-status-badge--cancelled {
    background: #FFEBEE;
    color: #C62828;
}

.order-status-badge--returned {
    background: #F3E5F5;
    color: #7B1FA2;
}

.order-status-badge--return-requested {
    background: #FFF3E0;
    color: #E65100;
}

.order-status-badge--default {
    background: var(--gray-100, #E8E8E8);
    color: var(--gray-600, #616161);
}

.order-card__body {
    padding: 1rem 1.25rem;
}

.order-card__products {
    font-size: 0.9rem;
    color: var(--gray-700, #393E46);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.order-card__products b {
    font-weight: 600;
}

.order-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card__date {
    color: var(--gray-500, #757575);
    font-size: 0.8rem;
}

.order-card__total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gray-900, #1A1E25);
}

.order-card__actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-100, #E8E8E8);
    background: var(--white, #fff);
}

.order-card__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.order-card__btn--detail {
    color: var(--primary, #00ADB5);
    border: 1px solid var(--primary, #00ADB5);
    background: transparent;
}

.order-card__btn--detail:hover {
    background: var(--primary, #00ADB5);
    color: var(--white, #fff);
}

.order-card__btn--return {
    color: var(--gray-600, #616161);
    border: 1px solid var(--gray-300, #BDBDBD);
    background: transparent;
}

.order-card__btn--return:hover {
    color: var(--danger, #DC2626);
    border-color: var(--danger, #DC2626);
}

/* Empty Orders */
.orders-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.orders-empty__icon {
    font-size: 4rem;
    color: var(--gray-300, #BDBDBD);
    margin-bottom: 1rem;
}

.orders-empty h3 {
    font-weight: 700;
    color: var(--gray-800, #222831);
    margin-bottom: 0.5rem;
}

.orders-empty p {
    color: var(--gray-500, #757575);
    margin-bottom: 1.5rem;
}

@media (max-width: 575px) {
    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-search__wrapper {
        width: 100%;
    }

    .order-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================
   MY REVIEWS PAGE — Card-Based Redesign
   ============================================ */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.review-card {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-xl, 16px);
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-card__product {
    font-weight: 600;
    color: var(--gray-800, #222831);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.review-card__headline {
    color: var(--gray-600, #616161);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.review-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500, #757575);
}

.review-card__stars {
    color: #F59E0B;
}

/* ============================================
   ACCOUNT DETAILS PAGE — Card-Based Redesign
   ============================================ */

.account-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.account-page__header {
    text-align: center;
    margin-bottom: 2rem;
}

.account-page__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #00ADB5) 0%, var(--primary-dark, #008B92) 100%);
    color: var(--white, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 0.75rem;
    text-transform: uppercase;
}

.account-page__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900, #1A1E25);
    margin-bottom: 0.25rem;
}

.account-page__email {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.account-section {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.account-section__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50, #EEEEEE);
    border-bottom: 1px solid var(--gray-200, #D5D5D5);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800, #222831);
}

.account-section__header i {
    color: var(--primary, #00ADB5);
}

.account-section__body {
    padding: 1.25rem;
}

.account-field {
    margin-bottom: 1rem;
}

.account-field:last-child {
    margin-bottom: 0;
}

.account-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500, #757575);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.account-field input,
.account-field select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-md, 8px);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Prevent iOS auto-zoom on input focus */
@media (max-width: 576px) {
    .account-field input,
    .account-field select {
        font-size: 16px;
    }
}

.account-field input:focus,
.account-field select:focus {
    outline: none;
    border-color: var(--primary, #00ADB5);
    box-shadow: 0 0 0 3px rgba(0, 173, 181, 0.15);
}

.account-field input[readonly] {
    background: var(--gray-50, #EEEEEE);
    color: var(--gray-500, #757575);
}

.account-submit {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary, #00ADB5);
    color: var(--white, #fff);
    border: none;
    border-radius: var(--radius-lg, 12px);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 173, 181, 0.35);
}

.account-submit:hover {
    background: var(--primary-hover, #009DA5);
    transform: translateY(-1px);
}

/* ============================================
   ERROR PAGES — Modern Redesign
   ============================================ */

.error-page-container {
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary, #00ADB5);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.15;
}

.error-page__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900, #1A1E25);
    margin-bottom: 0.75rem;
}

.error-page__message {
    color: var(--gray-500, #757575);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-page__search {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.error-page__search-wrapper {
    position: relative;
}

.error-page__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.error-page__search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.error-page__search-input:focus {
    outline: none;
    border-color: var(--primary, #00ADB5);
}

.error-page__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   ADDRESS BOOK — Theme Consistency Fix
   ============================================ */

.address-card-themed {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #D5D5D5);
    border-radius: var(--radius-xl, 16px);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.address-card-themed:hover {
    box-shadow: var(--shadow-md);
}

.address-card-themed--default {
    border-color: var(--primary, #00ADB5);
    border-width: 2px;
}

.address-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-card__badge--default {
    background: var(--primary-light, #E0F7FA);
    color: var(--primary-dark, #008B92);
}

.address-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.address-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--gray-300, #BDBDBD);
    color: var(--gray-600, #616161);
    background: transparent;
}

.address-card__action:hover {
    border-color: var(--primary, #00ADB5);
    color: var(--primary, #00ADB5);
}

.address-card__action--delete:hover {
    border-color: var(--danger, #DC2626);
    color: var(--danger, #DC2626);
}