.loginLogo{
    
    
    height:60px;
    width:auto;
    margin:0 auto;
    
}

/* Ensure Polaris Tabs fit the card width and indicator does not overflow */
.Polaris-Tabs__TabContainer {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}
.Polaris-Tabs__Tab {
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}
.Polaris-Tabs__Tab--selected {
  position: relative;
}
.Polaris-Tabs__Tab--selected::after {
  content: '';
  display: block;
  height: 3px;
  background: #3f4eae;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
}

.Polaris-Link{
    
    
    white-space: normal !important; 
    
}

.Polaris-Header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #000000;
    border-bottom: 1px solid #dde0e4;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 520;
}


.Polaris-Breadcrumbs__Breadcrumb{
    
    
    margin-bottom:20px !important;
    
}

.Polaris-Page__TitleAndActions{
    
    display:flex;
    
}

.Polaris-Page__Title{
    
    width:90%;
    
}

.Polaris-Header-Title{
    
    
    font-size:24px;
    font-weight:bold;
    
}

.Polaris-Page__Actions{
    
    width:10%;
    text-align:right;
    
    
}

.Polaris-Header__Title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.Polaris-Header__Title h1 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.Polaris-Header__SecondaryActions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.Polaris-Header__Username {
    color: #ffffff;
}

.Polaris-Button.Polaris-Button--plain {
    color: #ffffff;
    border: none;
    background: transparent;
    min-height: auto;
    padding: 0.5rem 1rem;
}

.Polaris-Button.Polaris-Button--plain:hover {
    background: rgba(255, 255, 255, 0.1);
}

.Polaris-Frame {
    padding-top: 56px;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.Polaris-Frame__Navigation {
    position: fixed;
    top: 56px;
    height: calc(100vh - 56px);
    width: 240px;
    left: 0;
    overflow-y: auto;
    background: #f6f6f7;
    border-right: 1px solid #dde0e4;
    z-index: 517;
}

.Polaris-Frame__Main {
    margin-left: 240px;
    flex: 1;
    background: #f6f6f7;
    min-height: calc(100vh - 56px);
    position: relative;
    width: calc(100% - 240px);
    float: right;
    display: flex;
    flex-direction: column;
}

.Polaris-Frame__Content {
    padding: 20px;
    min-height: calc(100vh - 56px);
    height: auto;
    background: #ffffff;
    margin: 0;
    flex: 1 1 auto;
    position: relative;
    width: 100%;
}

.Polaris-Navigation {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.Polaris-Navigation__PrimaryNavigation {
    flex: 1 1 auto;
    overflow-y: auto;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.pb-admin-logo {
    height: 40px !important;
    width: auto !important;
    display: block;
    max-width: none;
}

.Polaris-Header__Logo {
    height: 40px;
    width: auto;
}

.Polaris-Header__LogoText {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-left: 1rem;
}

.Polaris-Filters {
    margin-bottom: 2rem;
}

.Polaris-Filters__FiltersForm {
    display: block;
}

.Polaris-Filters__SearchContainer {
    margin-bottom: 2rem;
    display: block;
    width: 100%;
}

.Polaris-Filters__SearchField {
    max-width: 500px;
}

.Polaris-Filters__FilterButtons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    position: relative;
    margin-top: 2rem;
    clear: both;
}

.Polaris-Select__Input_2 {
    height: 36px;
    padding: 0.5rem;
    border: 1px solid #c9cccf;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
    outline: none;
}

.Polaris-Select__Input_2:hover {
    border-color: #999ea4;
}

.Polaris-Select__Input_2:focus {
    border-color: #5c6ac4;
    box-shadow: 0 0 0 1px #5c6ac4;
}

.Polaris-Badge--statusActive {
    background-color: #bbe5b3;
    color: #108043;
}

.Polaris-Badge--statusDraft {
    background-color: #fcf1cd;
    color: #916a00;
}

.Polaris-Badge--statusArchived {
    background-color: #fed3d1;
    color: #bf0711;
}

.Polaris-Badge--statusWarning {
    background-color: #fcf1cd;
    color: #916a00;
}

.Polaris-Badge--statusSuccess {
    background-color: #bbe5b3;
    color: #108043;
}

.Polaris-Pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.Polaris-ButtonGroup--segmented {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.Polaris-ButtonGroup__Item {
    color: #637381;
    font-size: 0.9375rem;
}

.Polaris-TextStyle--variationSubdued {
    color: #637381;
}

.Polaris-TextField__Input {
    padding: 0.5rem;
    border: 1px solid #c4cdd5;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    -webkit-appearance: searchfield !important;
    -moz-appearance: searchfield !important;
    appearance: searchfield !important;
}

.Polaris-TextField__Input:focus {
    border: 1px solid #5c6ac4 !important;
    outline: 1px solid #5c6ac4 !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 0 1px #5c6ac4 !important;
}

.Polaris-TextField__Input:focus-visible {
    border: 1px solid #5c6ac4 !important;
    outline: 1px solid #5c6ac4 !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 0 1px #5c6ac4 !important;
}

.Polaris-Button {
    min-height: 36px;
    padding: 0.5rem 1rem;
}

.Polaris-Label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: #637381;
}

.Polaris-Filters__FilterItem {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.Polaris-Filters__FilterItem:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.Polaris-Navigation__Section--withSeparator {
    padding-left: 2rem;
    margin-top: 0.5rem;
}

.Polaris-Navigation__Section--withSeparator .Polaris-Navigation__Item {
    padding-left: 1.2rem;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.product-image-item {
    position: relative;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #c4cdd5;
}

.product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

.product-image-item:hover .product-thumbnail {
    transform: scale(1.05);
}

/* Magnific Popup customization */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
    opacity: 0;
    backface-visibility: hidden;
    transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;
}

.Polaris-TextContainer {
    margin-bottom: 1rem;
}


.Polaris-Card__Header{
    
    padding:2rem 2rem 2rem 2rem !important;
    
    
}

.Polaris-TextStyle--variationStrong {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.Polaris-Stack--vertical > .Polaris-Stack__Item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e3e5;
}

.Polaris-Stack--vertical > .Polaris-Stack__Item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.Polaris-Choice {
    padding: 0.4rem 0;
    display:block !important;
}

.Polaris-RadioButton {
    position: relative;
    margin: 0.4rem 0;
    display: inline-flex;
    align-items: center;
}

.Polaris-RadioButton__Input {
    position: absolute;
    opacity: 0;
    margin: 0;
}

.Polaris-RadioButton__Label {
    padding-left: 1.75rem;
    min-width: 2.5rem;
}

.Polaris-RadioButton__Label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #c4cdd5;
    border-radius: 50%;
    background-color: #ffffff;
    transition: border-color 0.2s ease-in-out;
}

.Polaris-RadioButton__Label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #5c6ac4;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.Polaris-RadioButton__Input:checked + .Polaris-RadioButton__Label::before {
    border-color: #5c6ac4;
}

.Polaris-RadioButton__Input:checked + .Polaris-RadioButton__Label::after {
    opacity: 1;
}

.Polaris-RadioButton__Input:focus + .Polaris-RadioButton__Label::before {
    border-color: #5c6ac4;
    box-shadow: 0 0 0 1px #5c6ac4;
}

.Polaris-Stack--vertical > .Polaris-Stack__Item {
    margin-top: 0;
}

.toggle-metafields {
    padding: 0.5rem;
    cursor: pointer;
}

.toggle-metafields .Polaris-Icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.toggle-metafields.is-open .Polaris-Icon {
    transform: rotate(180deg);
}

.Polaris-Stack--alignmentBaseline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.Polaris-Stack__Item--fill {
    flex: 1;
}

.Polaris-Banner {
    margin-bottom: 2rem;
}

/* Changelog Table Styles */
.Polaris-DataTable__Table {
    width: 100%;
    border-collapse: collapse;
}

.Polaris-DataTable__Table th,
.Polaris-DataTable__Table td {
    padding: 1.6rem;
    text-align: left;
    border-bottom: 1px solid #e1e3e5;
    vertical-align: top;
}

.Polaris-DataTable__Table th {
    font-weight: 600;
    color: #212b36;
    background-color: #f9fafb;
    border-top: 1px solid #e1e3e5;
}

.Polaris-DataTable__Table td {
    color: #637381;
}

.Polaris-DataTable__Table tr:hover td {
    background-color: #f9fafb;
}

/* Style the changes column specifically */
.Polaris-DataTable__Table td:last-child {
    white-space: pre-line;
    line-height: 1.6;
}

.Polaris-DataTable__Table strong {
    color: #212b36;
    display: inline-block;
    margin-top: 0.8rem;
}

.Polaris-DataTable__Table strong:first-child {
    margin-top: 0;
}

/* Make the date column not wrap */
.Polaris-DataTable__Table td:first-child {
    white-space: nowrap;
}

/* Style the product link */
.Polaris-DataTable__Table a {
    color: #006fbb;
    text-decoration: none;
}

.Polaris-DataTable__Table a:hover {
    text-decoration: underline;
}

.Polaris-Button--outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Update the Stack styles */
.Polaris-Stack--horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.Polaris-Stack--horizontal .Polaris-Stack__Item {
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* Update the label margin for icon fields */
.Polaris-FormLayout__Item .Polaris-Labelled__LabelWrapper {
    margin-bottom: 1rem;
}

/* Add spacing between radio buttons and other elements */
.Polaris-Stack--horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Ensure consistent spacing between radio button items */
.Polaris-Stack--horizontal .Polaris-Stack__Item {
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: none;
    padding: 0.25rem 0;
}

/* Add styles for the sidebar select */
.Polaris-Layout__Section--secondary .Polaris-Select {
    margin-top: 0.5rem;
}

.Polaris-Layout__Section--secondary .Polaris-Select__Input_2 {
    width: 100%;
    min-width: 100%;
}

/* Add these styles for the variant options */
.variant-option-group {
    padding: 1rem 0;
    border-bottom: 1px solid #dfe3e8;
}

.variant-option-group:last-child {
    border-bottom: none;
}

.Polaris-FormLayout__Items {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.Polaris-Label__Help {
    color: #637381;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

#add-option-btn {
    margin: 1rem 0 1rem 1rem;
}

.size-helper {
    margin-top: 0.5rem;
    font-size: 1rem;
}

.size-helper a {
    color: #006fbb;
    text-decoration: none;
}

.size-helper a:hover {
    text-decoration: underline;
}

/* Add styles for vendor actions */
.vendor-actions {
    display: flex;
    gap: 0.5rem;
}

#new-vendor-input .Polaris-TextField {
    margin-bottom: 0.5rem;
}

.image-upload-container {
    margin-top: 1rem;
}

.Polaris-DropZone {
    padding: 1.5rem;
    text-align: center;
    border: 2px dashed #c4cdd5;
    border-radius: 3px;
    cursor: pointer;
}

.Polaris-DropZone:hover {
    border-color: #5c6ac4;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.product-image-item {
    position: relative;
}

.product-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
}

/* Add these styles for the index page full width layout */
.index-page-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override the Polaris-Page max-width for index page */
.Polaris-Page.index-page {
    max-width: none !important;
    margin: 0 !important;
}

.index-page-content .Polaris-Card {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.index-page-content .Polaris-Card__Section {
    padding: 2rem;
}

/* Ensure filters maintain some spacing */
.index-page-content .Polaris-Filters {
    margin: 0 0 2rem 0;
}

/* Add these styles for the filters layout */
.Polaris-Filters__FlexContainer {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: nowrap;
}

.Polaris-Filters__Item {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.Polaris-Filters__ButtonGroup {
    display: flex;
    gap: 0.5rem;
}

.Polaris-Filters__SearchField {
    min-width: 250px;
}

/* Ensure consistent heights for inputs and selects */
.Polaris-Filters__Item .Polaris-TextField__Input,
.Polaris-Filters__Item .Polaris-Select__Input_2 {
    height: 36px;
}

/* Remove the search container margins */
.Polaris-Filters__SearchContainer {
    margin-bottom: 0;
}

/* Adjust the overall filters container spacing */
.Polaris-Filters {
    padding: 1rem 0;
}

/* Add styles for the Shopify link button in table */
.Polaris-DataTable__Cell .Polaris-Button {
    min-height: 2rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.Polaris-DataTable__Cell .Polaris-Button__Icon {
    margin-right: 0.25rem;
}