/* Dropdown Menu Styles */
/* Container for all dropdowns */
.pr-dropdown-container {
    position: absolute;
    top: 5rem;

    /* Match header height */
    left: 0;
    width: 100%;
    z-index: 70;

    /* Below header but above content */
    pointer-events: none;
}

/* Dropdown wrapper - this will hold the box-shadow */
.pr-dropdown-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: auto;
    border-radius: 0.5rem;
    border-bottom: 0.5px solid var(--linegrey)
   /*  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 20px; */;
    opacity: 0;

    /* Initially hidden */
    transition: opacity 0.3s ease;
}

/* Individual dropdown */
.pr-dropdown {
    position: relative;

    /* Changed from absolute */
    width: 100%;

    /* clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%) */
    pointer-events: auto;
    overflow: hidden;
    will-change: clip-path;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

/* Dropdown content wrapper */
.pr-dropdown-content {
    /* padding: 3rem 0 */
    width: 100%;
}

/* Dropdown title */
.pr-dropdown-title {
    grid-area: 1 / 1 / 2 / 3;
    display: flex;
    justify-content: space-between;
    flex-direction: column;

    /* color: var(--dark) */
    /* margin-bottom: 2rem */
}

/* Dropdown cards container */
.pr-dropdown-cards {
    display: flex;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    grid-area: 1 / 3 / 2 / 13;
}

/* Individual dropdown card */
.pr-dropdown-card {
    /* background-color: var(--white) */
    border-radius: 0.25rem;
    overflow: hidden;
    position: relative;

    /* height: 100% */
}

/* Card image container */
.pr-dropdown-card-img {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;

    /* 4:3 aspect ratio */
    overflow: hidden;
}

/* Card image */
.pr-dropdown-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card content */
.pr-dropdown-card-content {
    padding: 1.5rem;
}

/* Card title */
/* .pr-dropdown-card-title {
  font-variation-settings: "wght" 600;
  margin-bottom: 0.5rem;
} */
/* Card number */
.pr-dropdown-card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-variation-settings: "wght" 500;
    color: var(--dark);
    opacity: 0.5;
}

/* Make nav items non-draggable while maintaining clickability */
.pr-nav__item,
.pr-nav__icon-search,
.pr-nav__icon-collection,
.pr-nav__link {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

/* Active nav item styling with smooth transition */
.pr-nav__item,
.pr-nav__icon-search,
.pr-nav__icon-collection {
    position: relative;
    transition: all 0.3s ease;
}

.pr-nav__item .pr-nav__link,
.pr-nav__icon-search .pr-nav__link,
.pr-nav__icon-collection .pr-nav__link {
    transition: color 0.3s ease;
}

/* Sliding underline for navigation - green line under active item */
.pr-nav__sliding-bg {
    position: absolute;
    height: 2px;
    background-color: var(--accent);
    border-radius: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    bottom: 0;

    /* Position at bottom of nav items */
    /* Ensure it's visible */
    will-change: transform, width, opacity;
}

/* Ensure sliding background is visible in white text phase */
.header-white-text-phase .pr-nav__sliding-bg {
    background-color: var(--lightgreen) !important;
}

/* Remove the old background system since we're using outline approach now */
.pr-nav__item::after,
.pr-nav__icon-search::after,
.pr-nav__icon-collection::after {
    display: none;
}

/* Remove active background styles since we're using outline approach */
.pr-nav__item.pr-nav__item--active::after,
.pr-nav__icon-search.pr-nav__item--active::after,
.pr-nav__icon-collection.pr-nav__item--active::after {
    display: none;
}

/* Reset any other elements that might have the background color */
.pg-main-cs-7::after {
    background-color: transparent !important;
}

/* Ensure text is visible on green background */
.pr-nav__item--active .pr-nav__link,
.pr-nav__icon-search.pr-nav__item--active .pr-nav__link,
.pr-nav__icon-collection.pr-nav__item--active .pr-nav__link {
    color: var(--dark);
}

/* Ensure active items with lightgreen background have dark text even when header is in white text phase */
.header-white-text-phase .pr-nav__item--active .pr-nav__link,
.header-white-text-phase .pr-nav__icon-search.pr-nav__item--active .pr-nav__link,
.header-white-text-phase .pr-nav__icon-collection.pr-nav__item--active .pr-nav__link,
.header-white-text-phase .pr-nav__sliding-bg + .pr-nav__link,
.header-white-text-phase .pr-nav__icon-collection.pr-nav__item--active .pr-nav__link {
    color: var(--dark) !important;

    /* Use !important to override any inline styles set by GSAP */
}

/* Make sure the language selector arrow changes color with the rest of the nav */
.header-white-text-phase .pr-nav__icon-language .arrow-rotate {
    color: var(--light) !important;
}

/* If language selector is active, keep text dark */
.header-white-text-phase .pr-nav__icon-language.pr-nav__item--active .arrow-rotate {
    color: var(--dark) !important;
}

/* Ensure SVG elements in active items have the correct color */
.header-white-text-phase .pr-nav__item--active svg path,
.header-white-text-phase .pr-nav__icon-search.pr-nav__item--active svg path,
.header-white-text-phase .pr-nav__icon-collection.pr-nav__item--active svg path {
    stroke: var(--dark) !important;

    /* Use !important to override any inline styles set by GSAP */
}

/* Dropdown text elements - initial state is handled by JavaScript */
/* opacity and transform are set by GSAP */
/* Search dropdown specific styles */
.pr-dropdown[data-dropdown-id="search"] {
    background-color: var(--white);
}

/* Redesigned search form */
.pr-search-form {
    position: relative;
    grid-area: 1 / 1 / 2 / 13;

    /* max-width: 800px */
    /* margin: 0 auto */
    display: flex;

    /* flex-direction: column */
    align-items: flex-start;
    justify-content: center;
    column-gap: 2rem;
}

/* Search title styles - commented out for now
.pr-search-title {
    font-size: 2rem;
    font-variation-settings: "wght" 600;
    margin-bottom: 2rem;
    text-align: center;
} */
.pr-search-input {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--dark);
    background-color: transparent;
    transition: border-color 0.3s ease;
}

.pr-search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.pr-search-button {
    /* position: absolute */
    right: 0;
    top: 0;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    height: 95%;
    width: 10rem;

    /* border: 1px solid var(--dark); */
    background-color: var(--lightgreen);
}

.pr-search-button:hover {
    transform: scale(1.1);
}

.pr-search-button svg {
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s ease;
}

/* Collection dropdown specific styles - SIMPLIFIED */
.pr-dropdown[data-dropdown-id="collection"] {
    background-color: var(--white);
    height: calc(100vh - 5rem);
    overflow-y: scroll !important;

    /* Force scrolling */
    /* Custom scrollbar styling */
    scrollbar-width: thin;

    /* Firefox */
    scrollbar-color: var(--dark) transparent;

    /* Firefox */
}

/* Ensure the dropdown is scrollable when displayed */
.pr-dropdown[data-dropdown-id="collection"][style*="display: block"] {
    overflow-y: scroll !important;
    max-height: calc(100vh - 5rem) !important;
    height: calc(100vh - 5rem) !important;
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
.pr-dropdown[data-dropdown-id="collection"]::-webkit-scrollbar {
    width: 6px;
}

.pr-dropdown[data-dropdown-id="collection"]::-webkit-scrollbar-track {
    background: transparent;
}

.pr-dropdown[data-dropdown-id="collection"]::-webkit-scrollbar-thumb {
    background-color: var(--dark);
    border-radius: 3px;
}

/* Content styling */
.pr-collection-header {
    display: flex;
    justify-content: space-between;

    /* align-items: center */
    /* margin-bottom: 2rem */
    padding-bottom: 5rem;

    /* border-bottom: 1px solid var(--linegrey) */
    flex-direction: column;
    grid-area: 1 / 1 / 2 / 5;
}

.pr-collection-items {
    position: relative;
    overflow-y: auto;
    max-height: 93vh;
    -webkit-overflow-scrolling: touch;

    /* For smooth scrolling on iOS */
}

/* Webkit scrollbar styling */
.pr-collection-items::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

.pr-collection-items::-webkit-scrollbar-thumb {
    background-color: #231F20;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.pr-collection-items::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* Firefox scrollbar styling */
.pr-collection-items {
    scrollbar-width: thin;
    scrollbar-color: #242424 #f1f1f1;
}

/* For Edge legacy support */
.pr-collection-items {
    -ms-overflow-style: auto;
    grid-area: 1 / 7 / 2 / 13;
}

.pr-collection-item {
    display: grid;
    grid-template-columns: 120px 1fr 120px 40px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;

    /* background-color: var(--light) */
    border-radius: 0.5rem;
    position: relative;
    border-top: 0.5px solid var(--linegrey);
}

.pr-collection-item:last-child {
    border-bottom: 0.5px solid var(--linegrey);
}

.pr-collection-item-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.25rem;
    aspect-ratio: 1 / 1;
}

.pr-collection-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-collection-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pr-collection-item-info h3 {
    margin: 0 0 0.5rem 0;

    /* font-size: 1.25rem */
    /* font-variation-settings: "wght" 600 */
}

.pr-collection-item-info p {
    margin: 0;
    color: var(--dark);

    /* opacity: 0.7 */
}

.pr-collection-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pr-collection-quantity-input {
    width: 40px;
    position: relative;
    left: 0.45rem;

    /* height: 40px */
    text-align: center;
    border: 1px solid var(--linegrey);
    border-radius: 0.25rem;

    /* font-size: 1rem */
    font-variation-settings: "wght" 500;
}

.pr-collection-quantity-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 0px solid var(--linegrey);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pr-collection-quantity-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.pr-collection-remove-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.pr-collection-remove-btn:hover {
    opacity: 1;
    color: #e74c3c;
}

.pr-collection-footer p {
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.pr-collection-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.pr-collection-empty {
    text-align: center;
    padding: 3rem 0;
}

.pr-collection-empty p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    opacity: 0.7;
}