/*
Theme Name: Soha Restaurant
Theme URI: mailto:rasheddeep@gmail.com
Author: Rashed Ahmad
Description: Tailwind supported theme with Dark Mode and WooCommerce Minicart. Customise Homepage, header, footer on theme customiser.
Version: 1.0
Requires PHP: 7.4
Text Domain: golden-dragon by Rashed
*/

/* ===== BASE STYLES ===== */
body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Basic Reset for WooCommerce to play nice with Tailwind */
.woocommerce ul.products { padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.woocommerce ul.products li.product { list-style: none; }

/* ===== PAGE TEMPLATE & GUTENBERG SUPPORT ===== */
.site-main {
    min-height: 60vh;
    padding: 3rem 0;
}

/* Main Content Container */
.entry-content,
.wp-block-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
}

/* Wide and Full Width Support */
.entry-content .alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignfull {
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0 1.5rem;
}

/* ===== GUTENBERG BLOCK STYLES ===== */

/* Group Block - For sections like "Who We Are" */
.wp-block-group {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.wp-block-group.has-background {
    padding: 2rem;
    border-radius: 1rem;
}

.wp-block-group.is-style-boxed {
    background: hsl(var(--muted) / 0.3);
    border: 1px solid hsl(var(--border));
}

/* Columns Block - For side-by-side layouts */
.wp-block-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.wp-block-column {
    flex: 1;
    min-width: 0;
    min-width: 280px;
}

.wp-block-column > *:first-child {
    margin-top: 0;
}

.wp-block-column > *:last-child {
    margin-bottom: 0;
}

/* Headings */
.wp-block-heading,
.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4,
.page-title {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.wp-block-heading.is-style-gradient,
.page-title,
.entry-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--foreground)), hsl(var(--foreground) / 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid hsl(var(--border));
    padding-bottom: 1rem;
}

.wp-block-heading.is-style-gradient::after,
.page-title::after,
.entry-content h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.5));
    border-radius: 2px;
    margin-top: 1rem;
}

.entry-content h2,
.wp-block-heading h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: hsl(var(--primary));
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.5rem;
    margin-top: 3rem;
}

.entry-content h3,
.wp-block-heading h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    color: hsl(var(--foreground));
}

.entry-content h4,
.wp-block-heading h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    color: hsl(var(--foreground));
}

/* Paragraphs */
.wp-block-paragraph,
.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.wp-block-paragraph.has-drop-cap::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.1em 0 0;
    color: hsl(var(--primary));
    font-family: 'Playfair Display', serif;
}

/* Lists - Critical for Privacy Policy */
.wp-block-list,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.wp-block-list li,
.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.wp-block-list.is-style-checked li {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.wp-block-list.is-style-checked li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
    font-weight: 700;
}

/* Ordered Lists with better numbering */
.wp-block-list.is-style-numbered,
.entry-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.wp-block-list.is-style-numbered > li,
.entry-content ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem 1.5rem 1.5rem 4rem;
}

.wp-block-list.is-style-numbered > li::before,
.entry-content ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

/* Nested ordered lists (2.1, 2.2 style) */
.entry-content ol ol,
.wp-block-list ol {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-left: 0;
}

.entry-content ol ol > li,
.wp-block-list ol > li {
    counter-increment: subitem;
    padding: 1rem;
    padding-left: 3rem;
    margin-bottom: 0.75rem;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border) / 0.5);
}

.entry-content ol ol > li::before,
.wp-block-list ol > li::before {
    content: counters(item, ".") "." counters(subitem, ".");
    font-size: 1rem;
    left: 1rem;
    top: 1rem;
}

/* Definition Lists - For "Website:", "Email:" format */
.wp-block-definition-list,
.entry-content dl {
    margin: 1.5rem 0;
    display: grid;
    gap: 0.5rem;
}

.wp-block-definition-list dt,
.entry-content dt {
    font-weight: 700;
    color: hsl(var(--primary));
    display: inline;
    margin-right: 0.5rem;
}

.wp-block-definition-list dd,
.entry-content dd {
    display: inline;
    margin-left: 0;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

/* Better definition list layout for contact info */
.entry-content dl.is-style-compact,
.wp-block-definition-list.is-style-compact {
    display: block;
    background: hsl(var(--muted) / 0.3);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
}

.entry-content dl.is-style-compact dt,
.wp-block-definition-list.is-style-compact dt {
    display: inline-block;
    min-width: 140px;
    color: hsl(var(--foreground));
    font-weight: 600;
}

.entry-content dl.is-style-compact dd,
.wp-block-definition-list.is-style-compact dd {
    display: inline;
    margin-bottom: 0.5rem;
}

.entry-content dl.is-style-compact dd::after {
    content: '';
    display: block;
    margin-bottom: 0.5rem;
}

/* Separator */
.wp-block-separator,
.entry-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent);
    margin: 3rem auto;
    max-width: 200px;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
    height: 2px;
}

.wp-block-separator.is-style-dots {
    background: transparent;
    height: auto;
    text-align: center;
}

.wp-block-separator.is-style-dots::before {
    content: '···';
    color: hsl(var(--muted-foreground));
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

/* Quote Block */
.wp-block-quote,
.entry-content blockquote {
    border-left: 4px solid hsl(var(--primary));
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: hsl(var(--card));
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    position: relative;
}

.wp-block-quote::before,
.entry-content blockquote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: hsl(var(--primary) / 0.2);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

.wp-block-quote cite,
.entry-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

/* Table Block */
.wp-block-table,
.entry-content table {
    margin: 2rem 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
}

.wp-block-table table,
.entry-content table {
    width: 100%;
}

.wp-block-table th,
.wp-block-table td,
.entry-content th,
.entry-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.wp-block-table th,
.entry-content th {
    background: hsl(var(--muted) / 0.5);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.wp-block-table tr:last-child td,
.entry-content tr:last-child td {
    border-bottom: none;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.entry-content table.is-style-stripes tbody tr:nth-child(odd) {
    background: hsl(var(--muted) / 0.2);
}

/* Media & Text Block */
.wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2rem;
    margin: 2rem 0;
    background: hsl(var(--card));
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
}

.wp-block-media-text__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-media-text__content {
    padding: 2rem;
}

/* Embed Block */
.wp-block-embed {
    margin: 2rem 0;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: hsl(var(--card));
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Spacer Block */
.wp-block-spacer {
    margin: 0 !important;
}

/* Button Block */
.wp-block-button {
    margin: 1.5rem 0;
}

.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.9));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.3);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.4);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Image Block */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    max-width: 100%;
    height: auto;
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.75rem;
    font-style: italic;
}

/* Cover Block */
.wp-block-cover {
    min-height: 400px;
    border-radius: 1rem;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Gallery Block */
.wp-block-gallery {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.wp-block-gallery.has-nested-images {
    display: flex;
    flex-wrap: wrap;
}

.wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* File Block */
.wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.wp-block-file__button {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Code Block */
.wp-block-code,
.entry-content code {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    display: block;
    margin: 1.5rem 0;
}

/* Preformatted Block */
.wp-block-preformatted,
.entry-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: hsl(var(--card));
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    font-family: monospace;
    line-height: 1.6;
}

/* Pullquote Block */
.wp-block-pullquote {
    border-top: 4px solid hsl(var(--primary));
    border-bottom: 4px solid hsl(var(--primary));
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    background: hsl(var(--muted) / 0.2);
}

.wp-block-pullquote p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.wp-block-pullquote cite {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--muted-foreground));
}

/* Verse Block */
.wp-block-verse {
    font-family: 'Courier New', monospace;
    background: hsl(var(--card));
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid hsl(var(--primary));
    font-style: italic;
    white-space: pre-wrap;
    margin: 1.5rem 0;
}

/* Search Block */
.wp-block-search {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.wp-block-search__input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid hsl(var(--border));
    border-radius: 0.625rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    outline: none;
}

.wp-block-search__input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.wp-block-search__button {
    padding: 0.75rem 1.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-block-search__button:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

/* Calendar Block */
.wp-block-calendar {
    margin: 1.5rem 0;
}

.wp-block-calendar table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.wp-block-calendar th {
    background: hsl(var(--muted) / 0.3);
    padding: 0.75rem;
    font-weight: 600;
}

.wp-block-calendar td {
    padding: 0.5rem;
    border: 1px solid hsl(var(--border));
}

.wp-block-calendar a {
    color: hsl(var(--primary));
    font-weight: 600;
}

/* Archives, Categories, Latest Posts */
.wp-block-archives,
.wp-block-categories,
.wp-block-latest-posts {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.wp-block-archives li,
.wp-block-categories li,
.wp-block-latest-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-block-archives li:last-child,
.wp-block-categories li:last-child,
.wp-block-latest-posts li:last-child {
    border-bottom: none;
}

.wp-block-latest-posts__post-title {
    font-weight: 600;
    text-decoration: none;
    color: hsl(var(--foreground));
    display: block;
    margin-bottom: 0.25rem;
}

.wp-block-latest-posts__post-date {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Comments Block */
.wp-block-latest-comments {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.wp-block-latest-comments__comment {
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.wp-block-latest-comments__comment-author {
    font-weight: 700;
    color: hsl(var(--primary));
}

.wp-block-latest-comments__comment-excerpt p {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
}

/* Social Links */
.wp-block-social-links {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    list-style: none;
    padding: 0;
}

.wp-block-social-links li {
    margin: 0;
}

/* Navigation Block */
.wp-block-navigation {
    margin: 1.5rem 0;
}

.wp-block-navigation-item {
    margin: 0;
}

.wp-block-navigation-item__content {
    color: hsl(var(--foreground));
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.wp-block-navigation-item__content:hover {
    background: hsl(var(--muted) / 0.5);
    color: hsl(var(--primary));
}

/* ===== LAYOUT UTILITIES ===== */

/* Reset margins for first/last elements */
.wp-block-group > *:first-child,
.wp-block-column > *:first-child,
.entry-content > *:first-child {
    margin-top: 0;
}

.wp-block-group > *:last-child,
.wp-block-column > *:last-child,
.entry-content > *:last-child {
    margin-bottom: 0;
}

/* Padding variations */
.wp-block-group.is-style-padding-sm {
    padding: 1rem;
}

.wp-block-group.is-style-padding-lg {
    padding: 3rem;
}

/* Background tints */
.has-primary-background-color {
    background-color: hsl(var(--primary)) !important;
}

.has-muted-background-color {
    background-color: hsl(var(--muted)) !important;
}

/* Text colors */
.has-primary-color {
    color: hsl(var(--primary)) !important;
}

.has-muted-color {
    color: hsl(var(--muted-foreground)) !important;
}

/* ===== TEXT GRADIENTS ===== */
.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-animated {
    background: linear-gradient(
        135deg,
        hsl(var(--primary)),
        hsl(var(--primary) / 0.7),
        hsl(var(--primary))
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== UTILITY CLASSES ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CUSTOM SCROLLBAR ===== */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, hsl(var(--primary) / 0.3), hsl(var(--primary) / 0.2));
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, hsl(var(--primary) / 0.5), hsl(var(--primary) / 0.4));
}

/* ===== CUSTOM CLASSES ===== */
.gdm-text-gradient {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--primary) / 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gdm-fade-in {
    animation: gdmFadeIn 0.3s ease-out forwards;
    opacity: 0;
}

@keyframes gdmFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gdm-line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gdm-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gdm-scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.gdm-scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[x-cloak] {
    display: none !important;
}

/* ===== BADGE ANIMATIONS ===== */
@keyframes cart-bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

.cart-badge-update {
    animation: cart-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== FILTER BADGE ===== */
.gdm-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== SPICE LEVEL COLORS ===== */
.gdm-spice-mild { background-color: #fef3c7; color: #92400e; }
.gdm-spice-medium { background-color: #ffedd5; color: #c2410c; }
.gdm-spice-hot { background-color: #fecaca; color: #b91c1c; }
.gdm-spice-extra-hot { background-color: #fee2e2; color: #991b1b; }

/* ===== HEADER LOGO STYLES ===== */
.header-inner .logo-link img {
    height: 150px !important;
    width: auto !important;
    object-fit: contain;
}

.header-inner .logo-link {
    display: flex;
    align-items: center;
}

.listpage-logo {
    max-width: 120px;
    margin: 0 auto;
}

/* ===== PICKUP TIME FIELD ===== */
.pickup-time-field {
    color-scheme: light dark;
}

.dark .pickup-time-field {
    color-scheme: dark;
}

/* ===== TOPBAR STYLES ===== */
.topbar-wrapper {
    position: relative;
    z-index: 49;
    transition: all 0.3s ease;
}

.topbar-wrapper .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.topbar-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-notice {
    padding: 0 12px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.topbar-coupon-badge {
    transition: all 0.3s ease;
    transform-origin: center right;
}

.topbar-coupon-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.4) !important;
}

.topbar-close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-close-btn i {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.topbar-close-btn:hover i {
    stroke-width: 2;
}

/* ===== GLASS EFFECTS ===== */
.glass-card {
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsl(var(--border) / 0.5);
}

.glass-dark {
    background: hsl(var(--foreground) / 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== BUTTON STYLES ===== */
.btn-primary-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.9));
    box-shadow: 0 4px 15px hsl(var(--primary) / 0.3);
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.4);
}

.btn-primary-glow:active {
    transform: translateY(0);
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        hsl(var(--primary-foreground) / 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary-glow:hover::before {
    left: 100%;
}

/* ===== HEADER NAVIGATION ===== */
.header-nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.5));
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.header-nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-bg-container {
    perspective: 1000px;
}

.hero-bg {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-orb {
    transition: transform 0.1s ease-out;
}

.font-heading {
    font-family: 'Playfair Display', serif;
}

.btn-hero {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero:hover::before {
    left: 100%;
}

.dish-card.hidden {
    display: none;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

/* ===== TESTIMONIALS SCROLL ===== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.testimonial-card-mobile {
    scroll-snap-align: center;
}

/* ===== SLIDE IN RIGHT ===== */
@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== PULSE RING ===== */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 hsl(var(--primary) / 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px hsl(var(--primary) / 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 hsl(var(--primary) / 0); }
}

.mobile-cart-btn {
    box-shadow:
        0 10px 40px -10px hsl(var(--primary) / 0.5),
        0 4px 6px -4px hsl(var(--primary) / 0.1);
    animation: pulse-ring 2s infinite;
}

.mobile-cart-btn:hover {
    animation: none;
}

/* ===== MINI CART OVERLAY ===== */
.gd-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.gd-cart-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    pointer-events: all;
}

/* ===== MINI CART DRAWER ===== */
.gd-mini-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gd-mini-cart.open {
    transform: translateX(0);
}

/* Glassmorphism Background */
.gd-cart-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.dark .gd-cart-glass {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ===== CART HEADER ===== */
.gd-cart-header {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.dark .gd-cart-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.gd-cart-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
    opacity: 0.3;
}

/* ===== PROGRESS BAR ===== */
.gd-progress-track {
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.dark .gd-progress-track {
    background: rgba(255, 255, 255, 0.06);
}

.gd-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / 0.7));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CART ITEM ===== */
.gd-cart-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .gd-cart-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.gd-cart-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dark .gd-cart-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Swipe Delete Background */
.gd-swipe-delete {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0.75rem 0.75rem 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gd-cart-item:hover .gd-swipe-delete {
    opacity: 1;
}

/* ===== ITEM ENTER/EXIT ANIMATIONS ===== */
@keyframes gdCartItemIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes gdCartItemOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        max-height: 200px;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
    to {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
    }
}

.gd-item-enter {
    animation: gdCartItemIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gd-item-exit {
    animation: gdCartItemOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

/* ===== QUANTITY STEPPER ===== */
.gd-qty-stepper {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.dark .gd-qty-stepper {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.gd-qty-stepper:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.08);
}

.gd-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: inherit;
    border: none;
    background: none;
    padding: 0;
}

.gd-qty-btn:hover:not(:disabled) {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.gd-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gd-qty-value {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    user-select: none;
}

/* ===== CART FOOTER ===== */
.gd-cart-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.dark .gd-cart-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* ===== CHECKOUT BUTTON ===== */
.gd-checkout-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: hsl(var(--primary-foreground));
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.85));
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.3);
}

.gd-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.4);
}

.gd-checkout-btn:active {
    transform: translateY(0);
}

.gd-checkout-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.gd-checkout-btn:hover::before {
    left: 100%;
}

/* ===== SECONDARY BUTTONS ===== */
.gd-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.8rem;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.dark .gd-btn-secondary {
    border-color: rgba(255, 255, 255, 0.1);
}

.gd-btn-secondary:hover {
    border-color: hsl(var(--primary) / 0.4);
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
}

.gd-btn-danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* ===== EMPTY STATE ===== */
@keyframes gdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.gd-empty-icon {
    animation: gdFloat 3s ease-in-out infinite;
}

/* ===== BADGE PULSE ===== */
@keyframes gdBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.gd-badge-pulse {
    animation: gdBadgePulse 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== META PILL ===== */
.gd-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ===== SCROLLBAR ===== */
.gd-cart-scroll::-webkit-scrollbar {
    width: 4px;
}

.gd-cart-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gd-cart-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.dark .gd-cart-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== REMOVE BUTTON ===== */
.gd-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.gd-cart-item:hover .gd-remove-btn {
    opacity: 1;
    transform: scale(1);
}

.gd-remove-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) !important;
}

/* ===== PRICE TAG ===== */
.gd-price-tag {
    font-variant-numeric: tabular-nums;
}

/* ===== SUMMARY ROW ===== */
.gd-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
}

.gd-summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
    margin: 0.5rem 0;
}

.dark .gd-summary-divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* ===== ITEM IMAGE ===== */
.gd-item-image {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 0.625rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.gd-cart-item:hover .gd-item-image img {
    transform: scale(1.08);
}

.gd-item-qty-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* ===== DELIVERY ESTIMATE ===== */
.gd-delivery-banner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.06), hsl(var(--primary) / 0.02));
    border: 1px solid hsl(var(--primary) / 0.1);
}

.dark .gd-delivery-banner {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--primary) / 0.04));
    border-color: hsl(var(--primary) / 0.15);
}

/* ===== COUPON SECTION ===== */
.gd-coupon-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s ease;
}

.dark .gd-coupon-input {
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.gd-coupon-input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.gd-coupon-btn {
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gd-coupon-btn:hover:not(:disabled) {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.gd-coupon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== TOAST OPTIMIZATIONS (Top Center) ===== */
.toast-container {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    width: 100%;
    max-width: 420px;
    padding: 0 1.5rem;
    pointer-events: none;
}

.toast-container > div {
    pointer-events: all;
    margin: 0 auto;
    box-shadow: 0 10px 30px -5px hsl(var(--primary) / 0.3);
}

/* Toast animations optimized for top-center */
[x-transition\\:enter-start="opacity-0 translate-y-4"],
[x-transition\\:leave-end="opacity-0 translate-y-4"] {
    transform: translate(-50%, 1rem) !important;
}

[x-transition\\:enter-end="opacity-100 translate-y-0"],
[x-transition\\:leave-start="opacity-100 translate-y-0"] {
    transform: translate(-50%, 0) !important;
}

/* ===== BADGE STYLES ===== */
.notification-badge {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.4);
    min-width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== DIVIDER WITH GRADIENT ===== */
.gradient-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        hsl(var(--border)),
        transparent
    );
}

/* ===== FOCUS STATES ===== */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.3);
}

/* ===== THEME TOGGLE ANIMATION ===== */
.theme-toggle-icon {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(180deg);
}

/* ===== PRICE STYLES ===== */
.price-tag {
    font-feature-settings: 'tnum' on, 'lnum' on;
}

/* ===== HEADER HEIGHT VARIATIONS ===== */
.header-height-compact { --header-inner-height: 64px; }
.header-height-default { --header-inner-height: 80px; }
.header-height-large { --header-inner-height: 96px; }

.site-header .header-inner {
    height: var(--header-inner-height, 80px);
}

/* ===== CUSTOM ANIMATIONS ===== */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
    opacity: 0;
}

/* ===== MINI CART CONTAINER ===== */
.mini-cart {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

.mini-cart::-webkit-scrollbar {
    width: 4px;
}

.mini-cart::-webkit-scrollbar-track {
    background: transparent;
}

.mini-cart::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
    border-radius: 20px;
}

.mini-cart::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.5);
}

.woocommerce-breadcrumb { display: none; }

/* ===== MINI CART OPTIMIZATIONS ===== */
.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    transition: background-color 0.2s ease;
}

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

.mini-cart-item-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: hsl(var(--muted));
    display: block;
    transition: transform 0.2s ease;
}

.mini-cart-item:hover .mini-cart-item-image {
    transform: scale(1.03);
}

.mini-cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-cart-item-title {
    font-weight: 600;
    font-size: 0.925rem;
    line-height: 1.3;
    margin-bottom: 2px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-cart-item-price {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.mini-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed hsl(var(--border) / 0.6);
}

.mini-cart-qty-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.mini-cart-qty-btn:hover:not(:disabled) {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: scale(1.1);
}

.mini-cart-qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.mini-cart-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.mini-cart-qty-display {
    min-width: 26px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.mini-cart-remove-btn {
    margin-left: auto;
    padding: 4px;
    border-radius: 6px;
    color: hsl(var(--muted-foreground));
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.mini-cart-remove-btn:hover {
    color: hsl(var(--destructive));
    background: hsl(var(--destructive) / 0.1);
    transform: scale(1.1);
}

.mini-cart-remove-btn:active {
    transform: scale(0.95);
}

.cart-item-loading {
    position: relative;
    opacity: 0.85;
    pointer-events: none;
}

.cart-item-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.cart-drawer {
    contain: layout style paint;
    will-change: transform, opacity;
    touch-action: pan-y;
}

.cart-item-image {
    content-visibility: auto;
    contain-intrinsic-size: 56px 56px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .mini-cart {
        max-width: 100%;
    }

    /* Compact cart items on mobile */
    .mini-cart-item-image {
        width: 50px;
        height: 50px;
    }

    .mini-cart-item-title {
        font-size: 0.875rem;
    }

    .topbar-coupon-badge {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .topbar-coupon-badge span:first-child {
        display: none;
    }

    .mobile-cart-btn {
        bottom: 24px;
        right: 24px;
    }

    .mini-cart-item:hover {
        transform: none;
    }

    .mini-cart-item:active {
        background-color: hsl(var(--muted) / 0.5);
        transform: scale(0.98);
    }
    
    /* Page Template Mobile */
    .entry-content,
    .wp-block-post-content {
        padding: 0 1rem;
    }
    
    .wp-block-heading.is-style-gradient,
    .page-title,
    .entry-content h1 {
        font-size: 1.875rem;
    }
    
    .entry-content h2,
    .wp-block-heading h2 {
        font-size: 1.5rem;
    }
    
    .wp-block-group {
        padding: 1.5rem;
    }
    
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        min-width: 100%;
    }
    
    /* Ordered lists on mobile */
    .entry-content ol > li,
    .wp-block-list.is-style-numbered > li {
        padding: 1rem;
        padding-left: 3rem;
    }
    
    .entry-content ol > li::before,
    .wp-block-list.is-style-numbered > li::before {
        left: 1rem;
        top: 1rem;
    }
    
    /* Definition lists compact on mobile */
    .entry-content dl.is-style-compact dt,
    .wp-block-definition-list.is-style-compact dt {
        display: block;
        min-width: auto;
        margin-bottom: 0.25rem;
    }
    
    .entry-content dl.is-style-compact dd,
    .wp-block-definition-list.is-style-compact dd {
        display: block;
        margin-bottom: 1rem;
        margin-left: 1rem;
    }
}

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

    .cart-badge-update,
    .mobile-cart-btn,
    .topbar-notice,
    .cart-item-slide-in,
    .cart-item-highlight,
    .qty-update-scale {
        animation: none !important;
        transform: none !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .gd-mini-cart {
        max-width: 100%;
    }
}

/* ============================================
   WOOCOMMERCE MY ACCOUNT NAVIGATION
   ============================================ */

.woocommerce-MyAccount-navigation {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation-link {
    position: relative;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Icon styling using pseudo-elements */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='9' x='3' y='3' rx='1'/%3E%3Crect width='7' height='5' x='14' y='3' rx='1'/%3E%3Crect width='7' height='9' x='14' y='12' rx='1'/%3E%3Crect width='7' height='5' x='3' y='16' rx='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Hover states */
.woocommerce-MyAccount-navigation-link:hover {
    background: hsl(var(--muted) / 0.5);
}

.woocommerce-MyAccount-navigation-link:hover a {
    color: hsl(var(--foreground));
}

.woocommerce-MyAccount-navigation-link:hover a::before {
    opacity: 1;
}

/* Active state */
.woocommerce-MyAccount-navigation-link.is-active {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
    border: 1px solid hsl(var(--primary) / 0.2);
}

.woocommerce-MyAccount-navigation-link.is-active a {
    color: hsl(var(--primary));
    font-weight: 600;
}

.woocommerce-MyAccount-navigation-link.is-active a::before {
    opacity: 1;
    filter: drop-shadow(0 0 8px hsl(var(--primary) / 0.4));
}

/* Active indicator pill */
.woocommerce-MyAccount-navigation-link.is-active::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background: hsl(var(--primary));
    border-radius: 9999px;
    box-shadow: 0 0 12px hsl(var(--primary) / 0.6);
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Logout special styling */
.woocommerce-MyAccount-navigation-link--customer-logout:hover {
    background: hsl(var(--destructive) / 0.1);
    border-color: hsl(var(--destructive) / 0.2);
}

.woocommerce-MyAccount-navigation-link--customer-logout:hover a {
    color: hsl(var(--destructive));
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    transition: transform 0.3s ease;
}

.woocommerce-MyAccount-navigation-link--customer-logout:hover a::before {
    transform: translateX(2px);
    opacity: 1;
}

/* Responsive layout */
@media (min-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .woocommerce-MyAccount-navigation-link {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
}

@media (min-width: 1024px) {
    .woocommerce-MyAccount-navigation {
        position: sticky;
        top: 2rem;
        height: fit-content;
    }
    
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }
    
    .woocommerce-MyAccount-navigation-link {
        min-width: 100%;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .woocommerce-MyAccount-navigation {
        background: hsl(var(--card));
        border-color: hsl(var(--border));
    }
    
    .woocommerce-MyAccount-navigation-link.is-active {
        background: linear-gradient(135deg, hsl(var(--primary) / 0.15) 0%, hsl(var(--primary) / 0.05) 100%);
    }
}

/* Focus accessibility */
.woocommerce-MyAccount-navigation-link a:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .woocommerce-MyAccount-navigation-link,
    .woocommerce-MyAccount-navigation-link a,
    .woocommerce-MyAccount-navigation-link a::before {
        transition: none;
    }
    
    .woocommerce-MyAccount-navigation-link.is-active::after {
        animation: none;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: 100%;
}