/* Custom component classes - Direct CSS instead of @apply */
.btn-primary {
    background-color: #343a40;
    color: #fefcf3;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #495057;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #212529;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background-color: #fefcf3;
    color: #343a40;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #495057;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #fdf8e7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Professional Action Button Styles */
.btn-cta {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: #fefcf3;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #495057;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transform: translateY(0);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #212529 0%, #1a1d20 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.btn-cta::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.6s;
}

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

.btn-outline {
    background-color: transparent;
    color: #343a40;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #343a40;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.btn-outline:hover {
    background-color: #343a40;
    color: #fefcf3;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-ghost {
    background-color: transparent;
    color: #343a40;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-ghost:hover {
    background-color: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
}

.btn-icon {
    background-color: #343a40;
    color: #fefcf3;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #495057;
    position: relative;
    overflow: hidden;
    min-width: 48px;
    min-height: 48px;
    text-decoration: none;
}

.btn-icon:hover {
    background-color: #212529;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

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

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

.btn-link {
    color: #343a40;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-link:hover {
    color: #212529;
    text-decoration-color: currentColor;
    transform: translateY(-1px);
}

.card {
    @apply bg-accent-50 rounded-lg shadow-lg border border-primary-300 p-6 transition-all duration-300 hover:shadow-xl relative;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(115,115,115,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(115,115,115,0.05) 50%, transparent 51%);
    pointer-events: none;
    border-radius: inherit;
}

.paper-texture {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(115,115,115,0.1) 1px, transparent 0);
    background-size: 24px 24px;
}

.sketch-border {
    position: relative;
}

.sketch-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(115,115,115,0.3) 25%,
        transparent 50%,
        rgba(115,115,115,0.3) 75%,
        transparent 100%);
    z-index: -1;
    border-radius: inherit;
}

.artistic-shadow {
    box-shadow:
        0 4px 6px -1px rgba(23, 23, 23, 0.1),
        0 2px 4px -1px rgba(23, 23, 23, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Additional artistic elements */
.pencil-stroke {
    position: relative;
}

.pencil-stroke::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(115,115,115,0.3) 10%,
        rgba(115,115,115,0.6) 50%,
        rgba(115,115,115,0.3) 90%,
        transparent 100%);
    border-radius: 1px;
}

.sketch-underline {
    position: relative;
    display: inline-block;
}

.sketch-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -2px;
    right: -2px;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        rgba(115,115,115,0.4) 0px,
        rgba(115,115,115,0.4) 3px,
        transparent 3px,
        transparent 6px
    );
    transform: rotate(-0.5deg);
}

.vintage-paper {
    background-color: #fdfdf9;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120,119,108,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120,119,108,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120,119,108,0.1) 0%, transparent 50%);
}

.hand-drawn-border {
    border: 2px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        repeating-linear-gradient(45deg,
            rgba(115,115,115,0.3) 0px,
            rgba(115,115,115,0.3) 2px,
            transparent 2px,
            transparent 4px
        ) border-box;
    border-radius: 8px;
}

/* Hover effects for artistic elements */
.hover-sketch:hover {
    transform: translateY(-2px) rotate(0.5deg);
    transition: all 0.3s ease;
}

.hover-sketch:hover::before {
    opacity: 0.8;
}

/* Navigation Styles */
.nav-link {
    @apply text-primary-700 hover:text-primary-900 px-3 py-2 text-sm font-medium font-serif transition-all duration-300 relative;
}

.nav-link.active {
    @apply text-primary-900 font-semibold;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* Enhanced Mobile Menu Styles */
.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    visibility: hidden;
}

.mobile-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.mobile-nav-link {
    @apply block px-4 py-3 text-base font-medium text-primary-700 hover:text-primary-900 hover:bg-accent-200 rounded-lg transition-all duration-300 relative overflow-hidden;
    min-height: 48px; /* Better touch target */
    display: flex;
    align-items: center;
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(52, 58, 64, 0.1), rgba(52, 58, 64, 0.05));
    transition: width 0.3s ease;
    border-radius: 0.5rem;
}

.mobile-nav-link:hover::before {
    width: 100%;
}

.mobile-nav-link.active {
    @apply text-primary-900 bg-accent-200 font-semibold shadow-sm;
    border-left: 4px solid #343a40;
}

.mobile-nav-link.active::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(52, 58, 64, 0.05), transparent);
}

/* Professional SVG Icon Styling */
.mobile-nav-link svg {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-link:hover svg {
    transform: translateX(2px);
    color: #343a40;
}

.mobile-nav-link.active svg {
    color: #343a40;
}

.mobile-order-btn svg {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-order-btn:hover svg {
    transform: scale(1.1);
}

/* Logo SVG styling */
.hover-sketch svg {
    transition: all 0.3s ease;
}

.hover-sketch:hover svg {
    transform: rotate(5deg) scale(1.1);
}

/* Horizontal mobile navigation links */
.mobile-nav-link-horizontal {
    @apply inline-block px-3 py-2 text-sm font-medium text-primary-700 hover:text-primary-900 hover:bg-accent-200 rounded-md transition-all duration-300 whitespace-nowrap;
}

.mobile-nav-link-horizontal.active {
    @apply text-primary-900 bg-accent-200 font-semibold;
}

/* Enhanced image upload and removal styles */
.image-preview-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-preview-container:hover {
    transform: translateY(-2px);
}

.remove-btn {
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

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

/* Mobile Menu Button Enhancements */
.mobile-menu-button {
    @apply relative p-2 rounded-lg transition-all duration-300 hover:bg-accent-200 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-button svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-button.active svg {
    transform: rotate(90deg);
}

.mobile-menu-button:hover {
    background-color: rgba(52, 58, 64, 0.1);
}

/* Mobile Menu Container Enhancements */
.mobile-menu-container {
    position: relative;
    background: linear-gradient(135deg, #fdf8e7 0%, #faf0c3 100%);
    border: 2px solid #ced4da;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    margin-top: 8px;
    overflow: hidden;
}

.mobile-menu-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 58, 64, 0.1), transparent);
}

/* Pricing Button in Mobile Menu - Enhanced Styling */
.mobile-order-btn {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%) !important;
    color: #fefcf3 !important;
    font-weight: 700 !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #495057 !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 16px !important;
    font-size: 16px !important;
    letter-spacing: 0.025em !important;
    width: 100% !important;
    cursor: pointer !important;
}

.mobile-order-btn:hover {
    background: linear-gradient(135deg, #212529 0%, #1a1d20 100%) !important;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.25), 0 8px 8px -5px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
    color: #fefcf3 !important;
    text-decoration: none !important;
}

.mobile-order-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent) !important;
    transition: left 0.6s !important;
}

.mobile-order-btn:hover::before {
    left: 100% !important;
}

.mobile-order-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    color: #fefcf3 !important;
}

.mobile-order-btn span {
    color: #fefcf3 !important;
    font-weight: 700 !important;
}

.mobile-order-btn:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}

.mobile-order-btn:focus {
    outline: none !important;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(52, 58, 64, 0.3) !important;
}

/* Mobile-specific styles for better touch targets */
@media (max-width: 768px) {
    .remove-btn {
        opacity: 1 !important;
        width: 32px;
        height: 32px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        min-height: 48px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Improved mobile menu spacing */
    .mobile-menu-container {
        padding: 12px;
        margin: 8px 4px 0 4px;
    }

    /* Better visual hierarchy on mobile */
    .mobile-nav-link:not(:last-child) {
        margin-bottom: 4px;
    }
}

/* Enhanced Mobile Menu Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@keyframes menuItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animation for menu items */
.mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-link:nth-child(5) { animation-delay: 0.3s; }

.mobile-menu.show .mobile-nav-link {
    animation: menuItemSlideIn 0.3s ease-out both;
}

/* Smooth fade animations */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-primary-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors bg-accent-50;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-primary-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors bg-accent-50 resize-vertical;
}

.form-select {
    @apply w-full px-4 py-3 border border-primary-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors bg-accent-50;
}

/* Upload Area Styles */
.upload-area {
    @apply border-2 border-dashed border-primary-300 rounded-lg p-8 text-center cursor-pointer transition-all duration-300 hover:border-primary-500 hover:bg-primary-50;
}

.upload-area.dragover {
    @apply border-primary-500 bg-primary-50;
}

/* Price Display Styles */
.price-display {
    @apply text-4xl font-bold text-primary-700 font-artistic;
}

.price-breakdown {
    @apply text-sm text-primary-600 bg-accent-50 p-4 rounded-lg border border-primary-200;
}

/* Size Selection Styles */
.size-card {
    @apply border-2 border-primary-300 rounded-lg p-4 cursor-pointer transition-all duration-300 hover:border-primary-500;
}

.size-card.selected {
    @apply border-primary-700 bg-primary-50;
}

/* Gallery Filter Buttons */
.gallery-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fefcf3 0%, #fdf8e7 100%);
    border: 2px solid #d4c5a9;
    border-radius: 12px;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-filter-btn:hover {
    background: linear-gradient(135deg, #fdf8e7 0%, #f8f0d6 100%);
    border-color: #c4b59a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    border-color: #212529;
    color: #fefcf3;
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.4);
}

.gallery-filter-btn.active:hover {
    background: linear-gradient(135deg, #212529 0%, #1a1d20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 58, 64, 0.5);
}

.filter-icon {
    font-size: 16px;
    line-height: 1;
}

.filter-text {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.025em;
}

.filter-count {
    background: rgba(52, 58, 64, 0.1);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.gallery-filter-btn.active .filter-count {
    background: rgba(254, 252, 243, 0.3);
    color: #fefcf3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-filter-btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .filter-icon {
        font-size: 14px;
    }

    .filter-text {
        display: none;
    }

    .gallery-filter-btn {
        flex-direction: column;
        gap: 4px;
        min-width: 80px;
    }

    .filter-count {
        margin-top: 2px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        padding: 1rem;
    }

    /* Mobile button adjustments */
    .btn-cta {
        padding: 16px 32px;
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-icon {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    /* Mobile menu specific improvements for small screens */
    .mobile-menu-container {
        margin: 8px 2px 0 2px;
        padding: 8px;
    }

    .mobile-nav-link {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 8px;
    }

    .mobile-nav-link svg:first-child {
        min-width: 20px;
        flex-shrink: 0;
    }

    .mobile-order-btn {
        padding: 14px 20px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        min-height: 50px !important;
        margin-top: 12px !important;
    }

    .mobile-order-btn svg {
        width: 18px !important;
        height: 18px !important;
        margin-right: 6px !important;
    }
}

/* Force Mobile Pricing Button Styling - High Priority */
.mobile-menu .mobile-order-btn,
a.mobile-order-btn {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%) !important;
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid #495057 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    margin-top: 16px !important;
    min-height: 56px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.mobile-menu .mobile-order-btn:hover,
a.mobile-order-btn:hover {
    background: linear-gradient(135deg, #212529 0%, #1a1d20 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.mobile-menu .mobile-order-btn svg,
a.mobile-order-btn svg {
    color: #ffffff !important;
    fill: none !important;
    stroke: currentColor !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
}

.mobile-menu .mobile-order-btn span,
a.mobile-order-btn span {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* Mobile specific adjustments */
@media (max-width: 640px) {
    .mobile-menu .mobile-order-btn,
    a.mobile-order-btn {
        padding: 14px 20px !important;
        font-size: 15px !important;
        min-height: 50px !important;
    }

    .mobile-menu .mobile-order-btn svg,
    a.mobile-order-btn svg {
        width: 18px !important;
        height: 18px !important;
        margin-right: 6px !important;
    }
}

    /* Improve touch targets on very small screens */
    .mobile-menu-button {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }

    /* Better spacing for navigation */
    nav.sticky {
        padding: 0 8px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mobile-nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }

    .mobile-nav-link svg:first-child {
        min-width: 18px;
        flex-shrink: 0;
    }

    .mobile-order-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Related Products Section Enhancements */
.related-products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.related-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(115,115,115,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(115,115,115,0.03) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    pointer-events: none;
}

.related-product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

.related-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.related-product-card:hover::before {
    opacity: 1;
}

.related-product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(115,115,115,0.1);
}

.related-product-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.related-product-card:hover .related-product-image {
    transform: scale(1.1) rotate(1deg);
}

.related-product-badge {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.related-product-card:hover .related-product-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-product-price {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.related-product-card:hover .related-product-price {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive improvements for Related Products */
@media (max-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .related-product-card {
        max-width: 100%;
    }

    .related-products-section {
        padding: 3rem 0;
    }

    .related-products-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .related-products-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .related-product-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .related-product-button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .related-product-content {
        padding: 1rem;
    }

    .related-product-features {
        margin-bottom: 1rem;
    }
}

/* Enhanced hover effects for better user experience */
.related-product-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.related-product-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-product-button:hover::before {
    left: 100%;
}

.related-product-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-product-button:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Content animations */
.related-product-content h3 {
    transition: all 0.3s ease;
}

.related-product-card:hover .related-product-content h3 {
    transform: translateY(-2px);
}

.related-product-features {
    transition: all 0.3s ease;
}

.related-product-card:hover .related-product-features {
    transform: translateY(-1px);
}

/* Staggered animation for feature items */
.related-product-features > div {
    transition: all 0.3s ease;
}

.related-product-card:hover .related-product-features > div:nth-child(1) {
    transition-delay: 0.1s;
    transform: translateX(4px);
}

.related-product-card:hover .related-product-features > div:nth-child(2) {
    transition-delay: 0.15s;
    transform: translateX(4px);
}

.related-product-card:hover .related-product-features > div:nth-child(3) {
    transition-delay: 0.2s;
    transform: translateX(4px);
}

/* Improved accessibility and final touches */
.related-product-card:focus-within {
    outline: 2px solid #495057;
    outline-offset: 2px;
    transform: translateY(-4px);
}

.related-product-button:focus {
    outline: 2px solid #495057;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .related-product-card,
    .related-product-image,
    .related-product-button,
    .related-product-badge,
    .related-product-price,
    .related-product-content h3,
    .related-product-features,
    .related-product-features > div {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .related-product-card:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .related-products-section {
        background: white !important;
        box-shadow: none !important;
    }

    .related-product-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    .related-product-button {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .related-product-card {
        border: 2px solid #000;
    }

    .related-product-badge,
    .related-product-price {
        border: 1px solid #000;
    }
}
