/* =========================================================
   Watches Portal International CSS
   Uses the natural diamond dynamic colour variable:
   --natural-diamond-color (default #897358)
   ========================================================= */

@import url('diamond-portal-intl-public.css');

/* ------------------------------------------------------------------
   Root / token overrides for the watches portal
   ------------------------------------------------------------------ */
#interim_app,
.watches-portal-wrap {
    --watches-primary: var(--natural-diamond-color, #897358);
    --watches-primary-light: rgba(137, 115, 88, 0.12);
    --watches-primary-dark: #6b5940;
    --watches-bg: #ffffff;
    --watches-sidebar-bg: #f8f8f7;
    --watches-border: rgba(137, 115, 88, 0.20);
    --watches-text-muted: #6b7280;
    --watches-card-shadow: 0 1px 4px rgba(137, 115, 88, 0.10);
}

/* ------------------------------------------------------------------
   Wrapper
   ------------------------------------------------------------------ */
.watches-portal-wrap {
    width: 100%;
    margin: 0 auto;
    font-family: "Figtree", sans-serif;
}

/* ------------------------------------------------------------------
   Action buttons — inherit natural diamond colour
   ------------------------------------------------------------------ */
.watches-portal-wrap .intl_btn,
.watches-portal-wrap .btn.intl_btn {
    background-color: var(--watches-primary);
    border-color: var(--watches-primary);
    color: #fff;
    letter-spacing: 0.5px;
    font-size: .85rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    padding: 6px 14px;
    transition: background-color .2s, border-color .2s, opacity .2s;
}

.watches-portal-wrap .intl_btn:hover,
.watches-portal-wrap .intl_btn:focus {
    background-color: var(--watches-primary-dark, #6b5940);
    border-color: var(--watches-primary-dark, #6b5940);
    color: #fff;
    text-decoration: none;
}

/* ------------------------------------------------------------------
   Toolbar
   ------------------------------------------------------------------ */
#watches-portal-toolbar {
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--watches-border);
    background: var(--watches-bg);
    margin-bottom: 10px;
}

#watches-portal-toolbar a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .2s, background .2s;
}

#watches-portal-toolbar a:hover {
    color: var(--watches-primary);
    background: var(--watches-primary-light);
}

#watches-portal-toolbar .count-badge {
    font-size: 11px;
    background: var(--watches-primary);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 2px;
}

/* ------------------------------------------------------------------
   IN-STOCK badge
   ------------------------------------------------------------------ */
.watches-portal-wrap .card-badge-instock {
    background-color: var(--watches-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
}

.watches-portal-wrap .dia_card .card-badge-instock {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
}

/* ------------------------------------------------------------------
   Catalogue header bar (title + count + sort)
   ------------------------------------------------------------------ */
#watches_action_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 12;
    background-color: var(--watches-bg);
    padding: 10px 0 0 0;
    border-bottom: 1px solid #e7ecf1;
}

.watches-portal-wrap .theme_color {
    color: var(--watches-primary);
}

.watches-count-pill {
    display: inline-block;
    background-color: var(--watches-primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
}

/* ------------------------------------------------------------------
   Search bar (top text + dropdowns)
   ------------------------------------------------------------------ */
#watches_search_bar {
    padding: 10px 0;
}

#watches_search_bar .search_input_wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 10px;
}

#watches_search_bar .search_input_wrap input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

#watches_search_bar .search_input_wrap .fa {
    color: #999;
}

#watches_search_bar .available-only-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

#watches_dropdown_row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

#watches_dropdown_row select {
    flex: 1 1 120px;
    min-width: 110px;
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

#watches_dropdown_row .reset-link {
    color: #c0392b;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    text-decoration: none;
}

#watches_dropdown_row .reset-link:hover {
    text-decoration: underline;
}

/* Search + Reset buttons */
#watches_search_bar .btn-search {
    background-color: var(--watches-primary);
    border-color: var(--watches-primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 5px 18px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

#watches_search_bar .btn-reset {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 4px;
}

.active-filter-btn,
.watches-portal-wrap .active-filter-btn {
    border-color: var(--natural-diamond-color, #897358) !important;
    background-color: rgba(137, 115, 88, 0.14) !important;
    color: var(--natural-diamond-color, #897358) !important;
    font-weight: 700 !important;
}

.watches-sidebar-column {
    position: sticky;
    top: 15px;
    align-self: flex-start;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    scrollbar-width: thin;
    z-index: 90;
}

.watches-sidebar-column::-webkit-scrollbar {
    width: 4px;
}

.watches-sidebar-column::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.watches-sidebar-column::-webkit-scrollbar-track {
    background: transparent;
}

.watches-portal-wrap #sticky_bar {
    position: sticky;
    top: 15px;
    z-index: 100;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

body.admin-bar .watches-portal-wrap #sticky_bar {
    top: 47px;
}

#watches_sidebar {
    width: 160px;
    min-width: 150px;
    max-width: 165px;
    flex-shrink: 0;
    background: var(--watches-sidebar-bg);
    border-right: 1px solid #e8e8e8;
    padding: 10px 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

#watches_sidebar .sidebar-section {
    border-bottom: 1px solid #ececec;
    padding: 10px 12px;
}

#watches_sidebar .sidebar-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    cursor: pointer;
    padding-bottom: 6px;
}

#watches_sidebar .sidebar-section-title .fa {
    font-size: 11px;
    color: #888;
}

#watches_sidebar .sidebar-search input {
    width: 100%;
    font-size: 11px;
    padding: 4px 7px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 6px;
    box-sizing: border-box;
}

#watches_sidebar .sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 0;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

#watches_sidebar .sidebar-item input[type="checkbox"] {
    accent-color: var(--watches-primary);
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

#watches_sidebar .sidebar-item .item-label {
    flex: 1;
    font-size: 12px;
}

#watches_sidebar .sidebar-item .item-count {
    font-size: 11px;
    color: var(--watches-text-muted);
    min-width: 24px;
    text-align: right;
}

#watches_sidebar .sidebar-item:hover .item-label {
    color: var(--watches-primary);
}

/* ------------------------------------------------------------------
   Sort / view bar
   ------------------------------------------------------------------ */
#watches_list_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
}

#watches_list_bar .sort-by-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

#watches_list_bar .sort-by-wrap label {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

#watches_list_bar select {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#watches_list_bar .view-toggle {
    display: flex;
    gap: 4px;
}

#watches_list_bar .view-toggle .view-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    color: #64748b;
    background: #f8fafc;
    transition: all .2s ease;
}

#watches_list_bar .view-toggle .view-btn:hover {
    border-color: var(--natural-diamond-color, #007a78);
    color: var(--natural-diamond-color, #007a78);
    background: #f1f5f9;
}

#watches_list_bar .view-toggle .view-btn.active {
    background: var(--natural-diamond-color, #007a78) !important;
    color: #ffffff !important;
    border-color: var(--natural-diamond-color, #007a78) !important;
    box-shadow: 0 2px 8px rgba(0, 122, 120, 0.4) !important;
}

#watches_list_bar .view-toggle .view-btn.active i {
    color: #ffffff !important;
}

/* ------------------------------------------------------------------
   Grid layout
   ------------------------------------------------------------------ */
#watches_grid_view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
    padding: 12px 0;
    width: 100%;
}

@media (max-width: 991px) {
    .watches-main-content-layout {
        flex-direction: column !important;
    }

    .watches-sidebar-column {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    #watches_grid_view {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------
   Watch grid card
   ------------------------------------------------------------------ */
.grid_item {
    height: 100%;
}

.watches-portal-wrap .dia_card,
.dia_card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--watches-card-shadow, 0 1px 3px rgba(0, 0, 0, 0.05));
    transition: box-shadow .2s, border-color .2s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.watches-portal-wrap .dia_card:hover,
.dia_card:hover {
    box-shadow: 0 4px 14px rgba(0, 122, 120, 0.18);
    border-color: var(--natural-diamond-color, #007a78);
}

.watches-portal-wrap .grid_item_sec,
.grid_item_sec {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    height: 100%;
}

/* Skeleton Card Loader */
.watch-skeleton-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
    height: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.watch-skeleton-thumb {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    border-radius: 6px;
}

.watch-skeleton-line {
    height: 14px;
    background: #f1f5f9;
    border-radius: 4px;
    width: 85%;
}

.watch-skeleton-line.short {
    width: 50%;
}

.watch-skeleton-line.price {
    width: 65%;
    height: 22px;
    margin-top: auto;
    background: #e2e8f0;
}

.watch-skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    animation: watchShimmer 1.5s infinite;
}

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

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

/* Card image area */
.watches-portal-wrap .grid_img {
    width: 100%;
    height: 360px !important;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.watches-portal-wrap .grid_img img.img_class {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Card action row (icons row) */
.watches-portal-wrap .card-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 4px;
}

.watches-portal-wrap .action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.watches-portal-wrap .grid_svg {
    color: #555;
    cursor: pointer;
    transition: color .2s;
}

.watches-portal-wrap .grid_svg:hover {
    color: var(--watches-primary);
}

/* Card brand / model title */
.watches-card-brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--watches-primary);
    margin: 0 0 2px;
}

.watches-card-model {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 2px;
    line-height: 1.3;
}

.watches-card-ref {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block: 0px !important;
}

.watches-card-ref .location-tag {
    float: right;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 600;
    color: #555;
}

.watch-flag-img {
    height: 20px !important;
    width: auto;
    max-width: 30px !important;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 2px;
    display: inline-block;
}

.watch-location-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.watches-card-ref .watch-flag-img {
    float: right;
    margin-top: 0;
}

.watches-card-ref .watch-location-wrap {
    float: right;
}

/* Card spec grid */
.watches-portal-wrap .card-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 2px;
    font-size: 11px;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-top: 4px;
    margin-bottom: 4px;
}

.watches-portal-wrap .card-stat-label {
    color: #64748b;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.watches-portal-wrap .card-stat-value {
    color: #0f172a;
    font-weight: 600;
    font-size: 11px;
    text-align: right;
    line-height: 1.3;
}

/* Papers / Box row */
.watches-card-papers-row {
    font-size: 11px;
    color: #555;
    border-top: 1px solid #f0f0f0;
    padding-top: 5px;
    margin-top: 5px;
}

/* Card price */
.watches-portal-wrap .grid_flex.title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    margin-top: 8px;
}

.watches-portal-wrap .grid_flex.title-row h4 {
    margin: 0;
    font-size: 12px;
}

.watches-portal-wrap .price-row {
    font-size: 14px;
    font-weight: 700;
    color: var(--watches-primary);
    margin-top: 6px;
}

.watches-portal-wrap .price-gst {
    font-size: 11px;
    color: #888;
}

/* Enquiry email icon on card */
.watches-card-enquiry-icon {
    float: right;
    color: var(--watches-primary);
    font-size: 16px;
    cursor: pointer;
}

/* Checkbox */
.watches-portal-wrap .grid-checkbox {
    accent-color: var(--watches-primary);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

#watches_table_view .grid_item .checker,
#watches_table_view .grid-checkbox {
    position: relative !important;
    right: 0px;
}

/* ------------------------------------------------------------------ */
#watches_table_bar {
    display: block;
    overflow: visible !important;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* ------------------------------------------------------------------
   List / table view styles (Desktop + Mobile Card Grid)
   ------------------------------------------------------------------ */
#watches_table_view {
    width: 100%;
    margin-top: 8px;
    border-collapse: separate;
    border-spacing: 0;
}

#watches_table_view thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #ffffff !important;
    background-color: var(--natural-diamond-color, #897358) !important;
    border-bottom: 2px solid #6e5c46 !important;
    border: none;
    white-space: nowrap;
    padding: 10px 8px;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 55px !important;
    z-index: 90 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

body.admin-bar #watches_table_view thead th {
    top: 85px !important;
}

#watches_table_view thead th a,
#watches_table_view thead th span,
#watches_table_view thead th i,
#watches_table_view thead th div,
#watches_table_view thead th small {
    color: #ffffff !important;
}

#watches_table_view tbody td {
    font-size: 12px;
    vertical-align: middle;
    padding: 6px 6px;
}

#watches_table_view .brand-cell {
    color: var(--watches-primary);
    font-weight: 700;
    font-size: 12px;
}

#watches_table_view .condition-badge {
    background: #f0f4f8;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #555;
}

#watches_table_view .price-cell {
    font-weight: 700;
    color: var(--watches-primary);
    white-space: nowrap;
}

#watches_table_view .td-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    background: #f9fafb;
    border: 1px solid #eee;
}

/* Responsive Table vs Mobile Cards */
@media (min-width: 992px) {
    #watches_table_view thead {
        display: table-header-group !important;
    }

    #watches_table_view tr.desktop-list-row {
        display: table-row !important;
    }

    #watches_table_view tr.mobile-list-row {
        display: none !important;
    }
}

@media (max-width: 991px) {
    #watches_table_bar {
        border: none !important;
    }

    #watches_table_view {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    #watches_table_view thead {
        display: none !important;
    }

    #watches_searched_data {
        display: block !important;
        width: 100% !important;
    }

    #watches_table_view tr.desktop-list-row {
        display: none !important;
    }

    #watches_table_view tr.mobile-list-row {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    #watches_table_view tr.mobile-list-row>td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    .watches-mobile-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 600px) {
    #watches_searched_data {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 992px) {
    #watches_table_view tr.mobile-list-row {
        display: none !important;
    }

    #watches_table_view tr.desktop-list-row {
        display: table-row !important;
    }

    #watches_table_view thead {
        display: table-header-group !important;
    }

    #watches_searched_data {
        display: table-row-group !important;
    }
}

/* ------------------------------------------------------------------
   Mobile Watch Card (Matching Screenshot 2)
   ------------------------------------------------------------------ */
.watches-mobile-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.watches-mobile-card .card-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.watches-mobile-card .card-brand-model {
    font-weight: 700;
    color: var(--watches-primary);
    font-size: 13px;
}

.watches-mobile-card .card-instock-badge {
    background: var(--watches-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.watches-mobile-card .card-ref {
    font-size: 11px;
    color: #666;
}

/* Spec pills grid header + values row */
.watches-spec-pills {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.watches-spec-pills .pill-label {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 2px;
    text-align: center;
    font-weight: 700;
    font-size: 9px;
    color: #555;
    border-right: 1px solid #e5e7eb;
}

.watches-spec-pills .pill-label:last-child {
    border-right: none;
}

.watches-spec-pills .pill-value {
    padding: 4px 2px;
    text-align: center;
    font-size: 10px;
    color: #222;
    border-right: 1px solid #e5e7eb;
    word-break: break-word;
}

.watches-spec-pills .pill-value:last-child {
    border-right: none;
}

.watches-mobile-card .detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #444;
    padding: 3px 0;
    border-bottom: 1px solid #f5f5f5;
}

.watches-mobile-card .detail-row .detail-label {
    color: #888;
}

.watches-mobile-card .card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 6px;
}

.watches-mobile-card .doc-badge {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: #555;
    background: #fafafa;
}

.watches-mobile-card .view-price-link {
    color: var(--watches-primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

/* ------------------------------------------------------------------
   No results
   ------------------------------------------------------------------ */
.watches-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}

/* ------------------------------------------------------------------
   Loader spinner
   ------------------------------------------------------------------ */
#watches-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#loader .sk-chase {
    width: 48px;
    height: 48px;
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
}

#loader .sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2s infinite ease-in-out both;
}

#loader .sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: #ffffff;
    border-radius: 100%;
    animation: sk-chase-dot-before 2s infinite ease-in-out both;
}

#loader .sk-chase-dot:nth-child(1) {
    animation-delay: -1.1s;
}

#loader .sk-chase-dot:nth-child(2) {
    animation-delay: -1.0s;
}

#loader .sk-chase-dot:nth-child(3) {
    animation-delay: -0.9s;
}

#loader .sk-chase-dot:nth-child(4) {
    animation-delay: -0.8s;
}

#loader .sk-chase-dot:nth-child(5) {
    animation-delay: -0.7s;
}

#loader .sk-chase-dot:nth-child(6) {
    animation-delay: -0.6s;
}

#loader .sk-chase-dot:nth-child(1):before {
    animation-delay: -1.1s;
}

#loader .sk-chase-dot:nth-child(2):before {
    animation-delay: -1.0s;
}

#loader .sk-chase-dot:nth-child(3):before {
    animation-delay: -0.9s;
}

#loader .sk-chase-dot:nth-child(4):before {
    animation-delay: -0.8s;
}

#loader .sk-chase-dot:nth-child(5):before {
    animation-delay: -0.7s;
}

#loader .sk-chase-dot:nth-child(6):before {
    animation-delay: -0.6s;
}

@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {

    80%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%,
    0% {
        transform: scale(1.0);
    }
}

/* ------------------------------------------------------------------
   Share popup (reuse existing pattern)
   ------------------------------------------------------------------ */
.watches-portal-wrap .share_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
}

.watches-portal-wrap .share_popup.open {
    display: flex;
}

.watches-portal-wrap .share_popup_inner {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    /* max-width: 480px; */
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.watches-portal-wrap .share_popup_inner .title_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.watches-portal-wrap .share_popup_inner .title_section h3 {
    margin: 0;
    font-size: 16px;
}

.watches-portal-wrap .share_popup_inner .title_section .close_popup {
    cursor: pointer;
    color: #888;
    font-size: 18px;
}

.watches-portal-wrap .result_button button.copy_link,
.share_popup .result_button button.copy_link {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    padding: 8px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

.watches-portal-wrap .result_button button.copy_link:hover,
.share_popup .result_button button.copy_link:hover {
    background: #222222 !important;
    color: #ffffff !important;
}

.watches-portal-wrap .result_button button.close_popup,
.share_popup .result_button button.close_popup,
.copy_link_result .result_button button.close_popup,
.whatsapp_email_link_result .result_button button.close_popup {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    padding: 8px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

.watches-portal-wrap .result_button button.close_popup:hover,
.share_popup .result_button button.close_popup:hover,
.copy_link_result .result_button button.close_popup:hover,
.whatsapp_email_link_result .result_button button.close_popup:hover {
    background: #f5f5f5 !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.watches-portal-wrap .submit_button {
    background: var(--watches-primary);
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.watches-portal-wrap .reset_button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* ------------------------------------------------------------------
   Cert link in card
   ------------------------------------------------------------------ */
.watches-portal-wrap a.card-cert-link {
    color: var(--watches-primary);
    font-size: 11px;
    text-decoration: none;
    font-weight: 500;
}

.watches-portal-wrap a.card-cert-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   Status badge
   ------------------------------------------------------------------ */
.watches-portal-wrap .status-available {
    color: #15803d;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Full Page Loader Overlay
   ------------------------------------------------------------------ */
#watches_full_page_loader {
    display: none !important;
}

#watches_full_page_loader .full-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--natural-diamond-color, #007a78);
    border-radius: 50%;
    animation: watchesSpin 0.8s linear infinite;
}

#watches_full_page_loader .full-loader-text {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes watchesSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal Popup Carousel Fixes */
#watchModalCarousel .carousel-item {
    height: 340px;
    border-radius: 8px;
}

#watchModalCarousel .carousel-item.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-carousel-thumb-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.modal-carousel-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.modal-carousel-thumb.active,
.modal-carousel-thumb:hover {
    border-color: var(--natural-diamond-color, #007a78);
    opacity: 1;
    transform: scale(1.05);
}

.modal-carousel-thumb.video-thumb {
    width: auto;
    padding: 0 10px;
    background: var(--natural-diamond-color, #007a78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* View Toggle Buttons */
.view-toggle .view-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
    color: #555555 !important;
    border: 1px solid #ced4da !important;
    box-shadow: none !important;
}

.view-toggle .view-btn.active,
.view-toggle .view-btn:hover {
    background-color: var(--natural-diamond-color, #007a78) !important;
    color: #ffffff !important;
    border-color: var(--natural-diamond-color, #007a78) !important;
    box-shadow: 0 2px 4px rgba(0, 122, 120, 0.3) !important;
}

/* List View Full Width Layout (Hides Sidebar in List View) */
.watches-view-list .watches-sidebar-column {
    display: none !important;
}

.watches-view-list #watches_diamond_views_wrap {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* List View Product Image Thumbnail Box (75px) */
.list-thumb-box {
    width: 75px;
    height: 75px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin: 0 auto;
}

.list-thumb-box:hover {
    border-color: var(--natural-diamond-color, #007a78);
    box-shadow: 0 4px 12px rgba(0, 122, 120, 0.2);
    transform: scale(1.05);
}

.list-thumb-box img.td-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.list-thumb-video-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: var(--natural-diamond-color, #007a78);
    color: #ffffff;
    font-size: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Watches Cart Order/Enquiry Responsive Card Layout */
@media (max-width: 1199px) {
    .watches-cart-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
        gap: 14px !important;
    }

    .watches-cart-card .card-left-sec {
        width: 100% !important;
        padding-right: 175px !important;
        box-sizing: border-box !important;
    }

    .watches-cart-card .card-right-sec {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: auto !important;
        min-width: 0 !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        height: auto !important;
    }

    .watches-cart-card .card-middle-sec {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 991px) {
    .watches-spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px 14px !important;
    }
}

@media (max-width: 575px) {
    .watches-cart-card .card-left-sec {
        padding-right: 120px !important;
    }

    .watches-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 10px !important;
    }
}

/* ==========================================================================
   Share Popup Fields Design Updates (Mobile Number, Email, Price Input)
   ========================================================================== */

/* Price section & input design */
.share_popup .price_section h4,
.share_popup_inner .price_section h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

input#price_input,
input#gemstone_price_input,
input#watches_price_input {
    display: inline-block !important;
    max-width: 120px !important;
    border: 1px solid #d1d5db !important;
    padding: 4px 14px !important;
    text-align: center !important;
    color: #000000 !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    height: 38px !important;
    line-height: normal !important;
    outline: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    margin: 0 4px !important;
}

/* Field labels */
.share_popup .field label,
.share_popup_inner .field label {
    text-align: center !important;
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
}

/* Number class container for country code & input */
.share_popup .number_class_div,
.share_popup_inner .number_class_div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

/* Country code select dropdown */
.share_popup select.country_code,
.share_popup_inner select.country_code,
.share_popup #country_code_sms,
.share_popup #country_code_whatsapp,
.share_popup #watches_country_code_sms,
.share_popup #watches_country_code_whatsapp,
.share_popup_inner .number_class_div select {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    height: 42px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    color: #374151 !important;
    outline: none !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 110px !important;
    max-width: 130px !important;
    cursor: pointer !important;
    margin-right: 0 !important;
}

/* Mobile/Phone & Email input fields */
.share_popup .number_class_div input,
.share_popup_inner .number_class_div input,
.share_popup .field input[type="text"],
.share_popup .field input[type="email"],
.share_popup_inner .email_field input,
.share_popup_inner .sms_field input,
.share_popup_inner .whatsapp_field input,
#gemstone_sms_number,
#watches_sms_number,
#gemstone_email,
#watches_email,
#gemstone_whatsapp_number,
#watches_whatsapp_number {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    height: 42px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    color: #111827 !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    margin-left: 0 !important;
}

/* Focus styles for share popup fields */
.share_popup input:focus,
.share_popup select:focus,
.share_popup_inner input:focus,
.share_popup_inner select:focus {
    border-color: #9ca3af !important;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2) !important;
}

/* ==========================================================================
   Responsive Mobile Styles (Max-width: 991px & 767px)
   Does not affect desktop view (Min-width: 992px)
   ========================================================================== */
@media (max-width: 991px) {

    /* Hide Refine Search Sidebar on Tablet & Mobile */
    .watches-portal-wrap .watches-sidebar-column {
        display: none !important;
    }

    /* Expand main view wrap to 100% width when sidebar is hidden */
    .watches-portal-wrap .watches-main-content-layout #watches_diamond_views_wrap {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

@media (max-width: 767px) {

    /* Mobile Search Container */
    .watches_search_form>div>div {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Keyword Search Box - Full Width */
    .watches_search_form #watches_keyword_input {
        max-width: 100% !important;
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* 2-Column Grid Layout for Filter Dropdowns */
    .watches_search_form .watches-multiselect-dropdown {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
        width: calc(50% - 4px) !important;
    }

    /* Last Filter Dropdown (Bezel) - Full Width */
    .watches_search_form .watches-multiselect-dropdown:nth-last-child(4) {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Centered Available Only Checkbox */
    .watches_search_form label:has(#watches_available_only) {
        width: 100% !important;
        justify-content: center !important;
        margin: 6px 0 !important;
    }

    /* Mobile Full Width Search and Reset Buttons */
    .watches_search_form button {
        flex: 1 1 100% !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin-top: 4px !important;
    }

    /* Mobile Sticky Control Bar */
    .watches-portal-wrap #sticky_bar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0px !important;
        z-index: 100 !important;
        padding: 8px 10px !important;
        margin-bottom: 12px !important;
        background: #ffffff !important;
    }

    body.admin-bar .watches-portal-wrap #sticky_bar {
        top: 0px !important;
    }

    #watches_list_bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 4px 6px !important;
        border: none !important;
        background: transparent !important;
    }

    /* Top Row in Sticky Bar: Action Icons (Compare, Enquiry, Order, Share) */
    #watches_diamond_actions {
        display: flex !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        width: 100% !important;
    }

    #watches_diamond_actions .intl_btn {
        padding: 6px 10px !important;
        min-width: 36px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
    }

    #watches_diamond_actions .action-text {
        display: none !important;
        /* Icon-only action buttons on mobile as per reference design */
    }

    /* Bottom Row in Sticky Bar: Count Pill + Sort Select + View Toggle */
    .watches-bar-left {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .watches-count-pill {
        font-size: 11px !important;
        padding: 4px 8px !important;
        white-space: nowrap !important;
    }

    .sort-by-wrap {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .sort-by-wrap label {
        display: none !important;
        /* Hide 'Sort By' label to save space on mobile */
    }

    .sort-by-wrap select {
        width: 100% !important;
        font-size: 11px !important;
        height: 32px !important;
        padding: 2px 4px !important;
    }

    .view-toggle {
        gap: 4px !important;
    }

    .view-toggle .view-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Grid View Cards - Single Column on Mobile */
    #watches_grid_view {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}