/* Custom CSS for Rush Jewels */

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar Hover and Dropdown Effects */
.nav-hover {
    transition: all 0.3s ease;
}

.nav-hover:hover {
    color: #C5A065;
    text-shadow: 0 0 8px rgba(197, 160, 101, 0.3);
    transform: translateY(-1px);
}

.categories-dropdown {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top left;
}

/* Categories dropdown hover */
.dropdown-item:hover {
    background-color: #F8F8F8;
    color: #C5A065;
    transition: all 0.2s ease;
}

/* Cute categories dropdown effects */
.categories-dropdown {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: top left;
}

.categories-dropdown:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.cute-dropdown-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.cute-dropdown-item:before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 101, 0.1), transparent);
    transition: left 0.5s ease;
}

.cute-dropdown-item:hover:before {
    left: 100%;
}

.cute-dropdown-item:hover {
    background: linear-gradient(135deg, #F8F8F8 0%, #FEFEFE 50%, #F8F8F8 100%);
    color: #C5A065;
    transform: translateX(8px) scale(1.02);
    text-shadow: 0 1px 3px rgba(197, 160, 101, 0.2);
    box-shadow: inset 3px 0 0 #C5A065;
}

.cute-dropdown-item i {
    transition: all 0.3s ease;
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
}

.cute-dropdown-item:hover i {
    opacity: 1;
    transform: translateX(0) rotate(360deg);
}

/* --- Product Card Custom Styles (From Reference) --- */
.product-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Ensure card has a base width/height in flex containers */
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.product-card:hover .view-product-btn {
    opacity: 1;
    bottom: 20px;
    transform: translateX(-50%);
}

.product-image {
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    width: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.view-product-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    color: #111111;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    white-space: nowrap;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.view-product-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(8px) saturate(200%);
    -webkit-backdrop-filter: blur(8px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(-50%) scale(1.05);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    flex-grow: 1;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

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

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #C5A065;
    font-size: 14px;
}

.review-count {
    font-size: 12px;
    color: #666666;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0.25rem 0;
    font-family: 'Playfair Display', serif;
}

.product-availability {
    font-size: 12px;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    color: #111111;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: #111111;
    color: white;
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

/* Helper for line clamping titles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f7f7f8;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 0;
}

.qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 0;
    color: #111111;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.qty-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.qty-value {
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #111111;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    min-width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 200;
    box-shadow: -12px 0 38px rgba(17, 17, 17, 0.18);
    transform: translateX(100%);
    transition: transform 0.48s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.32s ease;
    border-left: 1px solid rgba(197, 160, 101, 0.32);
    will-change: transform;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

.cart-panel.open {
    transform: translateX(0);
    box-shadow: -16px 0 42px rgba(17, 17, 17, 0.22);
}

.search-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    max-width: 960px;
    min-width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 205;
    box-shadow: -12px 0 38px rgba(17, 17, 17, 0.18);
    transform: translateX(100%);
    transition: transform 0.48s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.32s ease;
    border-left: 3px solid rgba(197, 160, 101, 0.45);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}

.search-panel.open {
    transform: translateX(0);
    box-shadow: -16px 0 42px rgba(17, 17, 17, 0.22);
}

.search-overlay,
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.75);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.show,
.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.search-panel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2.8vw, 1.8rem);
    padding: clamp(1.6rem, 3.5vw, 2.4rem);
    background: #ffffff;
    min-height: 100%;
}

.search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.search-panel-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #111111;
}

.search-panel-title-sub {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666666;
    margin-top: 0.25rem;
    font-family: 'Montserrat', sans-serif;
}

.search-close-btn {
    border: none;
    background: transparent;
    color: #666666;
    font-size: 1.5rem;
    padding: 0.35rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-close-btn:hover {
    color: #111111;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-field {
    flex: 1;
    min-width: min(320px, 100%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    padding: 0.85rem 1.1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-field i {
    color: #666666;
    font-size: 1rem;
}

.search-input-field:focus-within {
    border-color: #C5A065;
    box-shadow: 0 0 0 1px rgba(197, 160, 101, 0.35);
}

#search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #111111;
    background: transparent;
    letter-spacing: 0.01em;
    font-family: 'Montserrat', sans-serif;
}

#search-input::placeholder {
    color: #666666;
}

.search-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.search-action-btn:hover {
    background: #000000;
    transform: translateY(-1px);
}

.search-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
}

.search-suggestions {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.search-suggestions.is-active {
    display: flex;
}

.search-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-chip {
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: #f9fafb;
    color: #111111;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.search-chip:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.search-typeahead {
    display: none;
    flex-direction: column;
    margin-top: 0.35rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #ffffff;
    box-shadow: 0 18px 32px rgba(17, 17, 17, 0.12);
    max-height: 260px;
    overflow-y: auto;
}

.search-typeahead.active {
    display: flex;
}

.search-typeahead-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    font-size: 16px;
    color: #111111;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.search-typeahead-item:last-child {
    border-bottom: none;
}

.search-typeahead-item:hover,
.search-typeahead-item:focus {
    outline: none;
    background: rgba(197, 160, 101, 0.12);
    color: #111111;
}

.search-typeahead-name {
    font-weight: 600;
}

.search-typeahead-meta {
    font-size: 13px;
    color: #666666;
}

.search-typeahead-item mark,
.search-result-name mark,
.search-result-category mark {
    background: rgba(197, 160, 101, 0.25);
    color: inherit;
    padding: 0 0.05em;
}

.search-results-wrapper {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.search-results-wrapper.is-active {
    display: flex;
}

.search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed rgba(102, 102, 102, 0.25);
    background: #f9fafb;
    color: #666666;
}

.search-empty-state i {
    font-size: 1.8rem;
    color: #666666;
}

.search-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    font-family: 'Playfair Display', serif;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.search-result-item {
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
    border-color: #C5A065;
    box-shadow: 0 12px 26px rgba(17, 17, 17, 0.12);
}

.search-result-thumb {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-result-name {
    font-weight: 600;
    color: #111111;
    font-size: 16px;
    font-family: 'Playfair Display', serif;
}

.search-result-category {
    font-size: 13px;
    color: #666666;
    text-transform: capitalize;
    font-family: 'Montserrat', sans-serif;
}

.search-result-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.6rem;
    margin-left: auto;
    width: 120px;
    text-align: right;
}

.search-result-price {
    font-weight: 600;
    color: #111111;
    font-size: 16px;
    font-family: 'Playfair Display', serif;
}

.search-result-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    border-radius: 0;
}

.search-result-cart:hover {
    background: #C5A065;
    color: #111111;
    border-color: #C5A065;
    transform: translateY(-1px);
}

.search-result-cart i {
    font-size: 1rem;
    line-height: 1;
}

.search-no-results {
    text-align: center;
    padding: 2.75rem 1.5rem;
    border: 1px dashed rgba(102, 102, 102, 0.25);
    background: #ffffff;
    color: #666666;
}

.search-no-results h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.35rem;
    font-family: 'Playfair Display', serif;
}

.search-no-results p {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: #ffffff;
    color: #111111;
    box-shadow: none;
}

.cart-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    letter-spacing: -0.01em;
    color: #111111;
}

.cart-panel-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
}

.cart-close-btn,
#close-cart-panel {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #ffffff;
    color: #111111;
    transition: all 0.2s ease;
}

.cart-close-btn:hover,
#close-cart-panel:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.cart-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 28px;
    overflow: hidden;
    background: #ffffff;
}

#cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0 28px;
}

.cart-item {
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    padding: 18px 0;
}

.cart-item:last-child {
    border-bottom: none;
}


.cart-item-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 0;
    object-fit: cover;
    background: #f5f5f7;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    font-family: 'Playfair Display', serif;
}

.cart-item-description {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.cart-item-price {
    font-weight: 600;
    color: #111111;
    font-family: 'Playfair Display', serif;
}

.remove-item {
    border: none;
    background: transparent;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 17, 17, 0.32);
    transition: color 0.2s ease;
}

.remove-item:hover {
    color: #C5A065;
}


.cart-summary {
    padding: 24px 28px 32px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 -16px 34px rgba(17, 17, 17, 0.08);
    position: sticky;
    bottom: 0;
    z-index: 1;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cart-summary-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-label {
    font-weight: 600;
    font-size: 16px;
    color: #111111;
    font-family: 'Montserrat', sans-serif;
}

.summary-count {
    font-size: 13px;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
}

.summary-note {
    font-size: 12px;
    color: rgba(17, 17, 17, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.summary-amount {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    font-family: 'Playfair Display', serif;
}

.cart-summary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.summary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 13px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.summary-link i {
    color: #C5A065;
    font-size: 0.9rem;
}

.summary-link:hover {
    color: #C5A065;
}


.cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-summary-actions .summary-btn.ghost {
    order: 3;
}

.summary-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}


.summary-btn.primary {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(17, 17, 17, 0.22);
}

.summary-btn.primary:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(17, 17, 17, 0.28);
}

.summary-btn.secondary {
    background: #C5A065;
    color: #111111;
    border-color: rgba(197, 160, 101, 0.48);
    box-shadow: 0 12px 24px rgba(197, 160, 101, 0.26);
}

.summary-btn.secondary:hover {
    background: #b89058;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(197, 160, 101, 0.32);
}

.summary-btn.ghost {
    background: #ffffff;
    color: #111111;
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
}

.summary-btn.ghost:hover {
    border-color: rgba(197, 160, 101, 0.6);
    background: rgba(197, 160, 101, 0.12);
    transform: translateY(-1px);
}

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.cart-empty-state h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #111111;
    font-family: 'Playfair Display', serif;
}

.empty-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 0;
    background: #C5A065;
    color: #111111;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.empty-cart-btn:hover {
    background: #b89058;
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .cart-summary-actions {
        display: block;
    }

    .cart-summary-actions .summary-btn.ghost {
        grid-column: 1 / -1;
    }
}

.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1024px) {
    .search-panel {
        width: min(90vw, 480px);
    }
}

@media (max-width: 768px) {
    /* Cart panel: full width on mobile only */
    .cart-panel {
        width: 100%;
        max-width: none;
        left: 0;
    }

    /* Stack layout only - NO size changes */
    .cart-item-content {
        align-items: flex-start;
    }

    .cart-item-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .qty-controls {
        width: 100%;
        max-width: 220px;
    }

    .cart-summary-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-summary-links {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Search panel: full width on mobile */
    .search-panel {
        width: 100%;
        left: 0;
    }

    .search-panel-header {
        align-items: flex-start;
    }

    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .search-result-actions {
        width: auto;
        flex-direction: column;
        align-items: flex-end;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    /* Ensure full width on very small screens */
    .cart-panel,
    .search-panel {
        width: 100%;
        max-width: none;
    }
}

.product-card {
    transition: box-shadow 0.3s ease;
    width: min(100%, 280px);
    margin: 0 auto;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.04);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.04);
    transform: none;
}

.product-card img {
    transition: none;
}

#products-grid {
    justify-items: center;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.25rem;
}

.product-card-body .product-pricing {
    margin-top: 0.25rem;
}

@media (min-width: 1024px) {
    .product-card {
        width: min(100%, 260px);
    }

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

@media (min-width: 1280px) {
    .product-card {
        width: min(100%, 240px);
    }
}

.product-card-actions {
    gap: 12px;
    backdrop-filter: blur(2px);
}

.product-card-actions .product-action-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    box-shadow: 0 16px 28px rgba(17, 17, 17, 0.32);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    pointer-events: auto;
}

.product-card-actions .product-action-btn i {
    font-size: 1rem;
    line-height: 1;
}

.product-card-actions .product-action-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 160, 101, 0.65);
    box-shadow: 0 18px 32px rgba(17, 17, 17, 0.38);
}

.product-card-actions .product-action-btn.quick-view-btn {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
}

.product-card-actions .product-action-btn.quick-view-btn:hover {
    background: #b89058;
    color: #111111;
    transform: scale(1.05);
}

.product-card-actions .product-action-btn.add-to-cart-btn {
    background: #C5A065;
    color: #111111;
    border-color: rgba(197, 160, 101, 0.65);
}

.product-card-actions .product-action-btn.add-to-cart-btn:hover {
    background: #b89058;
    color: #111111;
}

@media (max-width: 640px) {
    .product-card-actions {
        gap: 10px;
    }

    .product-card-actions .product-action-btn {
        width: 44px;
        height: 44px;
    }
}


/* Quick View Modal */
#quick-view-modal {
    transition: opacity 0.3s ease;
}

/* Cart Animation */
.cart-item {
    animation: slideIn 0.5s ease;
}

/* Cart Count Badge Animation */
.cart-blink {
    animation: cartBlink 1.1s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes cartBlink {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-blink {
        animation: none;
    }
}


/* Fly to Cart Animation */
.fly-to-cart {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 0;
    background-color: #C5A065;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    animation: flyToCart 1s ease-in-out forwards;
}

@keyframes flyToCart {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.1);
        opacity: 0;
    }
}

.floating-cart-item {
    position: fixed;
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: rgba(17, 17, 17, 0.92);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 260;
    box-shadow: 0 16px 35px rgba(17, 17, 17, 0.28);
    border: 2px solid #C5A065;
    transform: translate(-50%, -50%) scale(1);
    --floating-travel-duration: 1.8s;
    --floating-transform-duration: 1.4s;
    --floating-fade-duration: 0.6s;
    transition: left var(--floating-travel-duration) cubic-bezier(0.22, 1, 0.36, 1),
    top var(--floating-travel-duration) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--floating-transform-duration) cubic-bezier(0.22, 1, 0.36, 1),
    opacity var(--floating-fade-duration) ease;
}

.floating-cart-item i {
    color: #C5A065;
    font-size: 1.15rem;
    line-height: 1;
}

.floating-cart-item.is-arriving {
    transform: translate(-50%, -50%) scale(0.52);
    opacity: 0.96;
}

.floating-cart-item.is-leaving {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.42);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.18);
}

#cart-icon i,
.add-to-cart-btn .fas.fa-shopping-bag,
.quick-view-btn .fas.fa-eye {
    transition: transform 0.2s ease, color 0.2s ease;
}

#cart-icon:hover i,
.add-to-cart-btn:hover .fas.fa-shopping-bag,
.quick-view-btn:hover .fas.fa-eye {
    transform: translateY(-1px) scale(1.05);
}

.add-to-cart-btn .fas.fa-shopping-bag {
    color: currentColor;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Help Desk Modal Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slideInRight {
    animation: slideInRight 0.3s ease-out forwards;
}

/* Custom Scrollbar for Help Desk */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #C5A065;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #b89058;
}

/* Testimonial Cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Newsletter Input Animation */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    transform: scale(1.02);
    box-shadow: none;
    text-shadow: 0 0 10px rgba(197, 160, 101, 0.5);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Hide Scrollbars Completely - All Browsers */
/* Webkit browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Firefox */
html {
    scrollbar-width: none;
}

body {
    scrollbar-width: none;
}

* {
    scrollbar-width: none;
}

/* Internet Explorer and Edge Legacy */
html,
body {
    -ms-overflow-style: none;
}

/* Ensure scrolling still works */
html,
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================
   LAYOUT-ONLY RESPONSIVE FIXES
   NO size/spacing/typography changes
   ONLY layout reflow and overflow prevention
   ============================================ */

/* Prevent horizontal overflow on all screens */
@media (max-width: 1023px) {
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    * {
        box-sizing: border-box;
    }
}

/* Mobile: Stack and reflow only */
@media (max-width: 767px) {
    /* Product grid: 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Cart/Search panels: full width on mobile */
    .cart-panel,
    .search-panel {
        width: 100vw;
        max-width: 100vw;
        left: 0;
    }

    /* Prevent image overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Very small phones: single column */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Product card typography */
.product-brand {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
}

.product-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #111111;
    font-family: 'Playfair Display', serif;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-pricing .current-price {
    color: #C5A065;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Playfair Display', serif;
}

.product-pricing .old-price {
    color: #666666;
    text-decoration: line-through;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    font-family: 'Montserrat', sans-serif;
}

/* Mobile sheets */
.mobile-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 180;
    pointer-events: none;
}

.mobile-sheet-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-sheet-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    transform: translateY(100%);
    background: #ffffff;
    transition: transform 0.3s ease;
    z-index: 190;
    overflow-y: auto;
    box-shadow: 0 -24px 50px rgba(17, 17, 17, 0.25);
    border-top: 2px solid #111111;
    padding: 1.5rem 1.5rem 2rem;
    pointer-events: none;
    border-radius: 0;
}

.mobile-sheet-panel.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111111;
    border-bottom: 2px solid #C5A065;
    margin: -1.5rem -1.5rem 1.5rem;
    padding: 1.25rem 1.5rem;
}

.sheet-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

.sheet-close {
    color: #C5A065;
    transition: color 0.2s ease;
}

.sheet-close:hover {
    color: #ffffff;
}

.sheet-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sheet-option-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.sheet-option-button {
    width: 100%;
    text-align: left;
    padding: 0.9rem 1.1rem;
    border: 1px solid #111111;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
    letter-spacing: 0.04em;
    font-family: 'Playfair Display', serif;
}

.sheet-option-button:hover {
    border-color: #C5A065;
    background: #111111;
    color: #ffffff;
}

.sheet-option-button.is-active {
    background: #C5A065;
    color: #111111;
    border-color: #C5A065;
    box-shadow: 0 0 0 1px #111111 inset;
}

/* Custom Gold Color */
.bg-gold {
    background-color: #C5A065;
}
.text-gold {
    color: #C5A065;
}
/* Targets the class "cute-dropdown-item" (desktop) and "cute-mobile-item" (mobile) */

/* 1. Define the Keyframes */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Apply animation to the items */
.cute-dropdown-item,
.cute-mobile-item {
    /* Initially hidden to prevent flash */
    opacity: 0;
    /* Run the animation */
    animation: slideDownFade 0.3s ease-out forwards;
}

/* 3. Stagger the animation (items appear one after another) */
.cute-dropdown-item:nth-child(1), .cute-mobile-item:nth-child(1) { animation-delay: 0.05s; }
.cute-dropdown-item:nth-child(2), .cute-mobile-item:nth-child(2) { animation-delay: 0.10s; }
.cute-dropdown-item:nth-child(3), .cute-mobile-item:nth-child(3) { animation-delay: 0.15s; }
.cute-dropdown-item:nth-child(4), .cute-mobile-item:nth-child(4) { animation-delay: 0.20s; }
.cute-dropdown-item:nth-child(5), .cute-mobile-item:nth-child(5) { animation-delay: 0.25s; }
.cute-dropdown-item:nth-child(6), .cute-mobile-item:nth-child(6) { animation-delay: 0.30s; }
.cute-dropdown-item:nth-child(7), .cute-mobile-item:nth-child(7) { animation-delay: 0.35s; }
.cute-dropdown-item:nth-child(8), .cute-mobile-item:nth-child(8) { animation-delay: 0.40s; }
.cute-dropdown-item:nth-child(9), .cute-mobile-item:nth-child(9) { animation-delay: 0.45s; }
.cute-dropdown-item:nth-child(10), .cute-mobile-item:nth-child(10) { animation-delay: 0.50s; }


/* --- RUSH JEWELS CART STYLES --- */

/* Strict No-Rounding Policy for Cart Panel */
#cart-panel *,
#cart-panel *::before,
#cart-panel *::after {
    border-radius: 0 !important;
}

/* Custom Sharp Scrollbar */
.sharp-scroll::-webkit-scrollbar {
    width: 4px;
}
.sharp-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.sharp-scroll::-webkit-scrollbar-thumb {
    background: #111;
}

/* Safe Area for Mobile */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* ⭐ GOOEY BUTTON ANIMATION ⭐ */
.c-button {
    color: #111111;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    padding: 1.2em 1em;
    cursor: pointer;
    display: block;
    width: 100%;
    vertical-align: middle;
    position: relative;
    z-index: 1;
    background: transparent;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.15em;
}

.c-button--gooey {
    color: #111111;
    text-transform: uppercase;
    border: 2px solid #111111;
    position: relative;
    transition: all 700ms ease;
    overflow: hidden;
}

.c-button--gooey .c-button__blobs {
    height: 100%;
    filter: url(#goo);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    bottom: -3px;
    right: -1px;
    z-index: -1;
}

.c-button--gooey .c-button__blobs div {
    background-color: #C5A065;
    width: 34%;
    height: 100%;
    border-radius: 100% !important; /* Internal blobs need to be round for effect */
    position: absolute;
    transform: scale(1.4) translateY(125%) translateZ(0);
    transition: all 700ms ease;
}

.c-button--gooey .c-button__blobs div:nth-child(1) { left: -5%; }
.c-button--gooey .c-button__blobs div:nth-child(2) { left: 30%; transition-delay: 60ms; }
.c-button--gooey .c-button__blobs div:nth-child(3) { left: 66%; transition-delay: 25ms; }

.c-button--gooey:hover {
    color: #fff;
    border-color: #C5A065;
}

.c-button--gooey:hover .c-button__blobs div {
    transform: scale(1.4) translateY(0) translateZ(0);
}

/* BLACK VARIANT (Clear Cart) */
.c-button--black .c-button__blobs div {
    background-color: #111111;
}
.c-button--black:hover {
    border-color: #111111;
}

/* ICON BUTTON VARIANT (Remove Bin) */
.c-button--icon {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-width: 1px !important;
}


#filters-sidebar.mobile-sheet-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 195;
    pointer-events: none;
    background: #ffffff;
    border-top: 2px solid #111111;
    overflow: hidden;
}

#filters-sidebar.mobile-sheet-panel.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

#filters-sidebar.mobile-sheet-panel .filters-panel {
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    padding: 2rem 1.75rem calc(env(safe-area-inset-bottom) + 3rem);
    border-radius: 0;
    max-width: 100%;
    background: #ffffff;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#filters-sidebar.mobile-sheet-panel .filters-panel button#apply-filters {
    margin-top: 0;
    position: static;
    bottom: auto;
    width: 100%;
    box-shadow: none;
    margin-bottom: 0.15rem;
}

#filters-sidebar.mobile-sheet-panel .filters-panel button#clear-filters {
    margin-top: 0.15rem;
}

#mobile-sort-sheet {
    top: 0;
    height: 100vh;
    max-height: 100vh;
    padding: 0;
    overflow: hidden;
}

#mobile-sort-sheet .sort-sheet-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem calc(env(safe-area-inset-bottom) + 2.5rem);
    background: #ffffff;
    gap: 1.5rem;
    overflow-y: auto;
}

#mobile-sort-sheet .sort-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#mobile-sort-sheet .sort-option-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#mobile-sort-sheet .sheet-option-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.04em;
    color: #111111;
    border-radius: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#mobile-sort-sheet .sort-option-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

#mobile-sort-sheet .sheet-option-button:hover {
    border-color: #111111;
    background-color: #f9fafb;
    color: #111111;
    box-shadow: 0 12px 20px rgba(17, 17, 17, 0.08);
}

#mobile-sort-sheet .sheet-option-button.is-active {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(17, 17, 17, 0.16);
}

#mobile-sort-sheet .sheet-option-button.is-active .sort-option-label {
    color: #ffffff;
}

#mobile-sort-sheet .sheet-option-button .sort-option-indicator {
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: #C5A065;
    display: inline-flex;
    align-items: center;
}

#mobile-sort-sheet .sheet-option-button.is-active .sort-option-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile product grid: layout only - NO size changes */
@media (max-width: 640px) {
    #products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
    }

    #products-grid .product-card {
        width: 100%;
        margin: 0;
    }
}


/* ============================================
   LAYOUT-ONLY RESPONSIVE - NO SIZE/SPACING CHANGES
   Only grid columns, flex-direction, overflow fixes
   ============================================ */

/* Product Grid: Column adjustments only */
@media (max-width: 374px) {
    #products-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 375px) and (max-width: 767px) {
    #products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    #products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Product Detail: Stack on mobile only */
@media (max-width: 767px) {
    .product-detail .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Shop Filters: Hide/show only */
@media (max-width: 767px) {
    #filters-sidebar:not(.mobile-sheet-panel) {
        display: none;
    }
}

@media (min-width: 768px) {
    #filter-toggle,
    #sort-toggle,
    #mobile-sort-sheet,
    #mobile-sheet-overlay {
        display: none;
    }
}

/* Collection Grid: Column adjustments */
@media (max-width: 767px) {
    .collection-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Checkout: Stack layout only */
@media (max-width: 767px) {
    .checkout-container {
        flex-direction: column !important;
    }

    .checkout-form,
    .order-summary {
        width: 100% !important;
    }
}

/* Account Page: Stack layout */
@media (max-width: 767px) {
    .account-sidebar {
        width: 100% !important;
    }

    .account-content {
        width: 100% !important;
    }

    .account-grid,
    .account-grid[class*="grid-cols"] {
        grid-template-columns: 1fr !important;
    }
}

/* Footer: Column adjustments */
@media (max-width: 767px) {
    footer .container > div {
        flex-direction: column !important;
    }

    footer .grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    footer .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tables: Reflow layout only */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent horizontal overflow */
@media (max-width: 1023px) {
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* iOS form zoom prevention - size must stay 16px */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Print: Hide non-printable */
@media print {
    nav,
    footer,
    .cart-panel,
    .search-panel,
    .mobile-menu,
    button,
    .no-print {
        display: none !important;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

