/* ==========================================================================
   Modern B2B Unified Stylesheet
   Includes styles for Account, Homepage, Login, RFQ, and Wishlist pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
    --primary-blue: #0c4caa;
    --secondary-orange: #f46e12;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --dark-text: #1a1a1a;
    --gray-text: #666666;
    --border-color: #e5e5e5;
    --gradient-blue: linear-gradient(135deg, #0c4caa 0%, #083c8a 100%);
    --gradient-orange: linear-gradient(135deg, #f46e12 0%, #d35a0d 100%);
}

body {
    font-family: 'Cairo', sans-serif;
}

/* --------------------------------------------------------------------------
   HOME PAGE STYLES (from homepage.css)
   -------------------------------------------------------------------------- */
.homepage-container {
    background-color: #f5f5f5;
    min-height: 100vh;
}

#mainSlider {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-banner-img {
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-banner-img {
    transform: scale(1.02);
}

#mainSlider .carousel-control-prev,
#mainSlider .carousel-control-next {
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#mainSlider:hover .carousel-control-prev,
#mainSlider:hover .carousel-control-next {
    opacity: 1;
}

#mainSlider .carousel-control-prev {
    left: 20px;
    right: auto;
}

#mainSlider .carousel-control-next {
    right: 20px;
    left: auto;
}

[dir="rtl"] #mainSlider .carousel-control-prev {
    right: 20px;
    left: auto;
}

[dir="rtl"] #mainSlider .carousel-control-next {
    left: 20px;
    right: auto;
}

#mainSlider .carousel-control-prev-icon,
#mainSlider .carousel-control-next-icon {
    filter: invert(1);
    width: 18px;
    height: 18px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.carousel-indicators .active {
    width: 24px;
    border-radius: 4px;
    background-color: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 40px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eeeeee;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-blue);
}

.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all-btn {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.sidebar-banner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.sidebar-banner:hover {
    transform: translateY(-5px);
}

.bottom-banner {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .carousel-banner-img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .carousel-banner-img {
        height: 250px;
    }

    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .carousel-banner-img {
        height: 180px;
    }

    .section-header {
        margin-top: 30px;
        margin-bottom: 16px;
    }

    .homepage-container {
        padding-top: 5px;
    }
}

/* --------------------------------------------------------------------------
   LOGIN & REGISTER PAGE STYLES (from login-page.css)
   -------------------------------------------------------------------------- */
.login-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 15px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 28px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    text-align: right;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: right;
    direction: rtl;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(12, 76, 170, 0.1);
}

.form-input::placeholder {
    color: #999999;
    text-align: right;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-orange);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(244, 110, 18, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 110, 18, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666666;
}

.register-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: right;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.contact-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

.contact-card.call {
    background: var(--gradient-blue);
}

.contact-card.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-card-link i {
    font-size: 18px;
}

.terms-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.terms-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.terms-header:hover {
    background-color: #fafafa;
}

.terms-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 15px;
}

.terms-title i {
    font-size: 18px;
}

.terms-chevron {
    color: #cccccc;
    font-size: 14px;
    transition: transform 0.3s;
}

.terms-header[aria-expanded="true"] .terms-chevron {
    transform: rotate(180deg);
}

.terms-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.terms-body.show {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.terms-content {
    padding: 16px 20px;
    background-color: #fafafa;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: term-counter;
}

.terms-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    text-align: right;
    counter-increment: term-counter;
    position: relative;
    padding-right: 28px;
}

.terms-list li:before {
    content: counter(term-counter);
    position: absolute;
    right: 0;
    top: 12px;
    background: var(--primary-blue);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.terms-list li:last-child {
    border-bottom: none;
}

.terms-list strong {
    color: #333333;
    font-weight: 600;
}

@media (max-width: 576px) {
    .login-container {
        padding: 15px 10px;
        margin: 20px auto;
    }

    .login-card {
        padding: 24px 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }

    .terms-list li {
        font-size: 12px;
        padding: 10px 0;
        padding-right: 24px;
    }
}

/* --------------------------------------------------------------------------
   ACCOUNT PAGE STYLES (from account-page.css)
   -------------------------------------------------------------------------- */
.account-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.profile-header-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(12, 76, 170, 0.3);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.profile-email {
    font-size: 13px;
    color: #666666;
    margin: 0 0 6px 0;
    word-break: break-all;
}

.profile-date {
    font-size: 12px;
    color: #999999;
    margin: 0 0 8px 0;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #10b981;
    font-weight: 500;
}

.edit-profile-btn {
    background: transparent;
    border: none;
    color: #666666;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.edit-profile-btn:hover {
    color: #333333;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px 15px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.3;
}

.menu-section {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #fafafa;
}

.menu-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-direction: row;
}

.menu-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-item-icon.text-primary {
    color: var(--primary-blue);
}

.menu-item-icon.text-danger {
    color: #ef4444;
}

.menu-item-icon.text-success {
    color: #10b981;
}

.menu-item-icon.text-info {
    color: #3b82f6;
}

.menu-item-text {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.menu-item-chevron {
    color: #cccccc;
    font-size: 14px;
    transition: transform 0.2s;
}

.logout-btn {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #ef4444;
    border-radius: 12px;
    color: #ef4444;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.logout-btn i {
    font-size: 18px;
}

[dir="rtl"] .profile-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .menu-item:hover .menu-item-chevron {
    transform: translateX(3px);
}

@media (max-width: 576px) {
    .account-container {
        padding: 15px 10px;
    }

    .profile-header-card {
        padding: 20px 16px;
    }

    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .profile-name {
        font-size: 16px;
    }

    .stats-container {
        gap: 8px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .menu-item {
        padding: 16px;
    }

    .menu-item-text {
        font-size: 14px;
    }
}

.page-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* --------------------------------------------------------------------------
   ACCOUNT INFO PAGE STYLES (from account-info.css)
   -------------------------------------------------------------------------- */
.account-info-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.info-item {
    flex: 0 0 50%;
    width: 50%;
    padding: 0 10px;
    margin-bottom: 16px;
}

@media (max-width: 576px) {
    .info-item {
        flex: 0 0 100%;
        width: 100%;
    }
}

.info-label {
    display: block;
    font-size: 12px;
    color: #888888;
    margin-bottom: 4px;
    text-align: right;
}

.info-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    text-align: right;
    word-break: break-all;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

@media (max-width: 576px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

.address-item {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
    background: #fafafa;
}

.address-item:hover {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(12, 76, 170, 0.1);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-type {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.address-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.address-details p {
    font-size: 13px;
    color: #666666;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #0a3d8c;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(12, 76, 170, 0.3);
}

.notes-content {
    background: #fff9db;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #fcc419;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

[dir="rtl"] .notes-content {
    border-right: 4px solid #fcc419;
    border-left: none;
}

/* --------------------------------------------------------------------------
   RFQ & ORDERS LIST (MY REQUESTS) STYLES
   -------------------------------------------------------------------------- */
.rfq-list-container {
    padding: 1rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.search-bar-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input-modern {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-input-modern:focus {
    outline: none;
    border-color: #0c4caa;
}

.search-icon-modern {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.filter-btn-modern {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.1rem;
}

.filter-pills-container {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
}

.filter-pills-container::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.filter-pill.active {
    background: #1a1a1a;
    color: #fff;
}

.filter-pill .count {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-inline-start: 4px;
}

.request-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    color: inherit !important;
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.request-info h6 {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    color: #333;
}

.request-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.product-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-thumbs {
    display: flex;
    gap: 8px;
}

.thumb-modern {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.product-count-modern {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
}

.request-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
}

.view-details-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777;
    font-size: 0.85rem;
    font-weight: 600;
}

.total-amount-modern {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
}

/* --------------------------------------------------------------------------
   RFQ & ORDER VIEW PAGE STYLES (PREMIUM)
   -------------------------------------------------------------------------- */
.rfq-view-container,
.view-container {
    padding: 1rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.info-card-premium,
.view-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.card-title-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.25rem;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.card-title-modern i {
    color: #0c4caa;
}

.request-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .request-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    word-break: break-all;
}

.product-item-modern,
.item-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.product-item-modern:last-child,
.item-row:last-child {
    border-bottom: none;
}

.prod-thumb-large,
.item-img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.prod-details,
.item-details {
    flex: 1;
}

.prod-name,
.item-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 6px;
    display: block;
    line-height: 1.4;
}

.prod-sku,
.item-meta {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 8px;
    display: block;
}

.summary-row-modern,
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #555;
}

.summary-row-modern.total,
.summary-total {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px dashed #eee;
    font-weight: 900;
    font-size: 1.2rem;
    color: #1a1a1a;
}

/* Timeline */
.timeline-modern {
    position: relative;
    padding-inline-start: 1rem;
}

.timeline-item-modern {
    position: relative;
    padding-bottom: 1.5rem;
    padding-inline-start: 1.5rem;
    border-inline-start: 2px solid #eee;
}

.timeline-item-modern:last-child {
    border-inline-start-color: transparent;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    inset-inline-start: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0c4caa;
}

.timeline-status {
    font-weight: 800;
    font-size: 0.85rem;
    color: #333;
    display: block;
}

.timeline-time {
    font-size: 0.7rem;
    color: #aaa;
}

/* Actions */
.view-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-premium-accept,
.btn-accept-modern {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
    width: 100%;
}

.btn-premium-accept:hover,
.btn-accept-modern:hover {
    transform: scale(1.02);
    color: #fff;
    filter: brightness(1.2);
}

.btn-premium-reject {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fee2e2;
    border-radius: 14px;
    padding: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   WISHLIST PAGE STYLES (from wishlist-page.css)
   -------------------------------------------------------------------------- */
.wishlist-container {
    max-width: 1000px;
    margin: 15px auto;
    padding: 0 12px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.item-count-badge {
    padding: 4px 12px;
    background: #ffffff;
    color: #666666;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.empty-state-icon {
    font-size: 64px;
    color: #eeeeee;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.empty-state-desc {
    font-size: 14px;
    color: #999999;
    margin-bottom: 24px;
}

.browse-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient-orange);
    color: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(244, 110, 18, 0.3);
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 110, 18, 0.4);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   BACK BUTTONS & SHARED PAGE ELEMENTS
   -------------------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding-top: 10px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
}

[dir="rtl"] .back-btn i {
    transform: rotate(180deg);
}

/* Updated Unified Header & Back Button */
.page-header-unified {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-btn-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn-modern:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.page-title-modern {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
}

/* Unified Status Badges */
.status-badge-modern {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending {
    background: #fffbeb;
    color: #b45309;
}

.status-processing {
    background: #eef2ff;
    color: #4338ca;
}

.status-shipped {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-delivered {
    background: #f0fdf4;
    color: #15803d;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.status-expired {
    background: #f1f3f5;
    color: #495057;
}

/* --------------------------------------------------------------------------
   PRODUCTS PAGE STYLES (from products/index.php)
   -------------------------------------------------------------------------- */
.nav-scroller-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.nav-scroller {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-scroller::-webkit-scrollbar {
    display: none;
}

/* Level 1 Categories - Circle Avatars */
.cat-l1-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 85px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-l1-item:hover {
    transform: translateY(-3px);
}

.cat-l1-img-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-l1-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-l1-name {
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    max-width: 100%;
}

.cat-l1-item.active .cat-l1-img-wrapper {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(12, 76, 170, 0.15);
}

.cat-l1-item.active .cat-l1-name {
    color: var(--primary-blue);
}

/* Pills for Level 2 & 3 & Brands */
.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cat-pill:hover {
    background: #f8fafc;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.cat-pill.active {
    background: var(--gradient-blue);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(12, 76, 170, 0.3);
}

/* Advanced Filters Toggle */
.filters-toggle-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-toggle-btn:hover {
    background: #f8fafc;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filters-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 10px;
}

/* Categories Grid (Main View) */
.category-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.category-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.category-img-container {
    position: relative;
    padding-top: 100%;
}

.category-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info-modern {
    padding: 15px;
    text-align: center;
    background: #ffffff;
}

.category-name-modern {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Product Section Result Title */
.result-title-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 24px;
    background: var(--gradient-blue);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(12, 76, 170, 0.3);
    margin-bottom: 25px;
}

/* --------------------------------------------------------------------------
   PRODUCT DETAILS PAGE STYLES (from products/details.php)
   -------------------------------------------------------------------------- */
.details-container {
    background-color: #f8fafc;
    padding-top: 30px;
    padding-bottom: 50px;
    min-height: 100vh;
}

.product-gallery-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #fdfdfd;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.thumbnail-scroller {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    border: 2px solid #f1f5f9;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details-info {
    padding-right: 20px;
}

.details-brand-name {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.details-product-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.details-price-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

.price-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-old {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.promo-tag {
    font-size: 13px;
    padding: 4px 10px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 6px;
    font-weight: 700;
}

.variant-table-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.v-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.v-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.v-qty-group {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 3px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    height: 31px;
    min-width: 98px;
    justify-content: space-between;
}

.v-qty-input {
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 800;
    color: #1e293b;
    font-size: 11px;
    width: 25px !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.v-qty-btn {
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    font-weight: 700;
    transition: var(--transition-base);
    padding: 0 !important;
}

.btn-plus {
    background: var(--primary-blue) !important;
    color: #fff !important;
    order: 3;
}

.btn-minus {
    background: #f1f5f9 !important;
    color: #475569 !important;
    order: 1;
}

.btn-minus.text-danger {
    color: #dc3545 !important;
}

.v-qty-input {
    order: 2;
}

.v-qty-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.v-qty-btn i {
    font-size: 14px;
}

.v-qty-group-sm {
    height: 34px !important;
    min-width: 100px !important;
    padding: 2px !important;
}

.v-qty-group-sm .v-qty-btn {
    width: 28px !important;
    height: 28px !important;
}

.v-qty-group-sm .v-qty-btn i {
    font-size: 11px;
}

.v-qty-group-sm .v-qty-input {
    font-size: 0.9rem !important;
    width: 30px !important;
}

.tier-pricing-alert {
    background: #f0fdf4;
    border: 1px dashed #22c55e;
    color: #15803d;
    font-size: 13px;
    padding: 12px;
    border-radius: 12px;
    margin-top: 20px;
}

.description-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.section-label {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.action-buttons-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .product-details-info {
        padding-right: 0;
        margin-top: 30px;
    }

    .main-image-wrapper {
        height: 300px;
    }

    .v-table thead {
        display: none;
    }

    .v-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 15px;
        background: #f8fafc;
        border-radius: 12px;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
    }

    .v-table tbody td {
        border: none;
        padding: 0;
    }

    /* Mobile alignment: Name & Qty on top row */
    .td-variant {
        order: 1;
        flex: 1 1 auto;
        width: auto !important;
        text-align: right;
    }

    .td-qty {
        order: 2;
        flex: 0 0 auto;
        width: auto !important;
    }

    /* Price & Stock on second row */
    .td-price,
    .td-stock {
        order: 3;
        flex: 1 0 100%;
        /* Force new line */
        width: 100% !important;
        margin-top: -5px;
        padding-top: 5px !important;
        border-top: 1px dashed #e2e8f0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .td-price::before,
    .td-stock::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        font-size: 0.9em;
    }
}

/* Common Modern Buttons */
.submit-btn {
    background: var(--gradient-orange);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(244, 110, 18, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 110, 18, 0.4);
    color: #fff;
    filter: brightness(1.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    transition: var(--transition-base);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 76, 170, 0.4);
}

/* --------------------------------------------------------------------------
   CONSOLIDATED STYLES: PRODUCT CARD, ZOOM, AND SECONDARY NAV
   -------------------------------------------------------------------------- */

/* FROM product_card.css */
.product-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: #000;
    padding: 8px 5px;
    z-index: 5;
}

.product-title {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #000 !important;
    margin: 0;
    line-height: 1.3;
}

.product-title a {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 700;
}

.product-title a:hover {
    text-decoration: underline;
}

.price-container {
    text-align: center;
    margin-top: 4px;
    font-size: 0.9rem;
}

.price-container .fw-bold {
    color: #ffd700;
}

.old-price {
    font-size: 0.8rem;
    color: #ccc;
    text-decoration: line-through;
}

.discount {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -34px;
    width: 100px;
    text-align: center;
    padding: 4px 0;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.ribbon.new {
    background: linear-gradient(#e74c3c, #c0392b);
}

.ribbon.featured {
    background: linear-gradient(#2ecc71, #27ae60);
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #ff4757;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 10;
}

.favorite-btn:hover {
    background-color: white;
    color: #ff4757;
}

.favorite-btn.active {
    color: #ff4757;
    background-color: white;
}

.add-btn-on-image,
.quantity-controls-on-image {
    position: absolute;
    bottom: 60px;
    left: 15px;
    z-index: 10;
}

.add-btn-on-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color, #4a6fa5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.add-btn-on-image:hover {
    background-color: #3a5a8c;
    transform: scale(1.1);
}

.quantity-controls-on-image {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-quantity-on-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-on-image {
    background-color: var(--primary-color, #4a6fa5);
    color: white;
}

.btn-add-on-image:hover {
    background-color: #3a5a8c;
}

.btn-minus-on-image {
    background-color: #6c757d;
    color: white;
}

.btn-minus-on-image:hover {
    background-color: #5a6268;
}

.btn-trash-on-image {
    background-color: #dc3545;
    color: white;
}

.btn-trash-on-image:hover {
    background-color: #c82333;
}

.quantity-display-on-image {
    margin: 0 8px;
    font-size: 1rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .product-card {
        height: 250px;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .ribbon {
        font-size: 0.65rem;
        width: 88px;
        right: -28px;
        padding: 3px 0;
    }

    .favorite-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .add-btn-on-image {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .btn-quantity-on-image {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .quantity-display-on-image {
        font-size: 0.9rem;
        margin: 0 5px;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.product-image-container.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear forwards;
    position: relative;
    overflow: hidden;
}

.product-image-container.skeleton .product-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.product-image-container.loaded .product-image {
    opacity: 1;
}

/* FROM product-zoom.css */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    border-radius: 8px;
}

.zoom-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease-in-out;
}

.zoom-lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border-radius: 8px;
    background-color: #fff;
}

.zoom-container:hover .zoom-lens {
    opacity: 1;
}

.zoom-container:hover img {
    opacity: 0;
}

/* FROM secondary-nav.css */
.secondary-navbar {
    background-color: #f8f9fa !important;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.secondary-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.secondary-nav-menu::-webkit-scrollbar {
    display: none;
}

.secondary-nav-item {
    flex: 0 0 auto;
}

.secondary-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.secondary-nav-link i {
    font-size: 1.1rem;
    color: var(--bs-primary);
}

.secondary-nav-link:hover {
    background-color: rgba(244, 110, 18, 0.05);
    color: var(--secondary-orange);
    border-bottom-color: var(--secondary-orange);
}

.secondary-nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    /* White adjustment */
    color: var(--secondary-orange);
    border-bottom-color: var(--secondary-orange);
    font-weight: 600;
}

.secondary-nav-link.active i {
    color: var(--secondary-orange);
}

.secondary-search-wrapper {
    position: relative;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
}

.secondary-search-wrapper .input-group {
    max-width: 350px;
}

.secondary-search-input {
    width: 300px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #dee2e6 !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding-inline-start: 1rem !important;
}

.secondary-search-input:focus {
    outline: none;
    border-color: var(--secondary-orange) !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 110, 18, 0.1) !important;
}

.secondary-search-icon {
    position: absolute;
    left: auto;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .secondary-navbar {
        display: none !important;
    }

    .secondary-search-input {
        width: 180px;
    }

    .secondary-search-input:focus {
        width: 220px;
    }
}

@media (max-width: 767px) {
    .secondary-nav-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .secondary-nav-menu::-webkit-scrollbar {
        display: none;
    }

    .secondary-nav-link {
        padding: 0.875rem 1rem;
        font-size: 1.1rem;
    }

    .secondary-nav-link i {
        font-size: 1rem;
    }

    .secondary-search-input {
        width: 140px;
    }

    .secondary-search-input:focus {
        width: 160px;
    }

    /* RFQ Page Custom Utilities */
    .rfq-item-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
    }

    .rfq-item-info {
        min-width: 0;
    }

    .v-qty-group-sm {
        height: 30px !important;
        min-width: 100px !important;
    }

    .v-qty-group-xs {
        height: 30px !important;
        min-width: 80px !important;
    }

    .spec-req-img-box {
        width: 80px;
        height: 80px;
        border: 1px solid #ffedcc;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .text-gold-dark {
        color: #9c6e00;
    }

    .badge-xs {
        font-size: 0.7rem;
    }

    .spec-req-input-group {
        flex: 1;
        min-width: 120px;
    }

    .sticky-sidebar-offset {
        top: 100px;
        z-index: 10;
    }

    .bg-gradient-purple {
        background: var(--gradient-blue);
    }

    @media (max-width: 767px) {
        /* .spec-req-input-group width override removed to support flex-nowrap */
    }
}

/* --------------------------------------------------------------------------
   HOMEPAGE STYLES
   -------------------------------------------------------------------------- */

/* Product icon placeholder when images are disabled */
.product-image.bi-phone {
    font-size: 4rem;
    color: #aaa;
}

/* Banner image below products */
.homepage-banner-bottom {
    max-height: 200px;
    object-fit: cover;
}

/* Second ribbon positioning for products with both new and featured */
.ribbon.new.ribbon-second {
    top: 60px;
}