h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Custom Fonts ===== */
@font-face {
    font-family: 'English-Bold';
    src: url('/fonts/English-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'English-Regular';
    src: url('/fonts/English-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Arabic';
    src: url('/fonts/Arabic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Copperplate';
    src: url('/fonts/Copperplate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DinCondensed';
    src: url('/fonts/DinCondensed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== Global Styles ===== */
* {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: #ffffff;
}

main {
}

/* ===== Header ===== */
.site-header {
    background: #102c2c;
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
}

.header-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    max-width: 90%;
    margin: 0 auto;
}

.logo-link:hover {
    opacity: 0.85;
}

.site-logo {
    height: 100px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 640px) {
    .site-header {
        padding: 2rem 0;
    }

    .site-logo {
        height: 80px;
    }
}

/* ===== Made in USA Section ===== */
.made-in-usa-container {
    text-align: center;
    margin-top: 126px;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease-out;
}

.made-in-usa {
    width: 225px;
    max-width: 90%;
    height: auto;
    justify-content: flex-end;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.made-in-usa:hover {
    transform: scale(1.02) rotate(-2deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* ===== Footer ===== */
.site-footer {
    background: #102c2c;
    color: white;
    padding: 2rem 2rem 2rem;
    margin: 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-address {
    font-family: 'English-Regular', sans-serif;
    font-size: 16px;
    color: white;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-address:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-icons {
    margin-top: 8px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-icon img {
    height: 40px;
    width: auto;
}

.footer-icon:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.footer-contact {
    font-family: 'English-Regular', sans-serif;
    font-size: 16px;
    color: white;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    letter-spacing: 1px;
    line-height: 1.4;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    display: inline-block;
}

.footer-separator {
    margin: 0 0.25rem;
}

@media (max-width: 640px) {
    .footer-icons {
        gap: 1rem;
    }

    .footer-icon img {
        height: 35px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-separator {
        display: none;
    }
}

/* ===== Home Page Styles ===== */
.home-page {
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #764ba2;
}

.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.feature-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== Products Page ===== */
.products-page {
    background: #ffffff;
    animation: fadeIn 0.4s ease-out;
}

.products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 3rem 0;
    letter-spacing: 0;
    font-family: 'English-Bold', sans-serif;
    animation: fadeInDown 0.6s ease-out;
}

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

/* Products Grid - 4 columns on desktop */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
    margin-top: 3rem;
}

/* Responsive - stack on mobile/tablet */
@media (max-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem 2rem;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

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

/* Stagger animation for product cards */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }
.product-card:nth-child(9) { animation-delay: 0.5s; }
.product-card:nth-child(10) { animation-delay: 0.55s; }
.product-card:nth-child(11) { animation-delay: 0.6s; }
.product-card:nth-child(12) { animation-delay: 0.65s; }

.product-card:hover {
    transform: translateY(-12px);
}

/* Circular Product Image */
.product-image-wrapper {
    width: 100%;
    max-width: 225px;
    margin: 0 auto 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image-wrapper {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
    transform: translateY(-4px);
}

.product-image-circle {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio for perfect circle */
    border-radius: 50%;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.02) rotate(2deg);
}

/* Product Info */
.product-info {
    width: 100%;
    transition: transform 0.3s ease;
}

.product-card:hover .product-info {
    transform: translateY(-2px);
}

.product-name {
    font-family: 'English-Bold', sans-serif;
    font-size: 21px;
    color: #2a2a2a;
    margin: 0 0 9px 0;
    letter-spacing: 0.08em;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #102c2c;
}

.product-arabic-name {
    font-family: 'Arabic', 'Traditional Arabic', sans-serif;
    font-size: 21px;
    color: #2a2a2a;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.product-card:hover .product-arabic-name {
    color: #102c2c;
}

/* ===== Product Detail Page ===== */
.product-detail-page {
    background: #ffffff;
    min-height: 100vh;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    animation: fadeIn 0.5s ease-out;
}

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

.back-button {
    font-family: 'English-Regular', sans-serif;
    font-size: 16px;
    color: #102c2c;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 4rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    opacity: 0.7;
    transform: translateX(-5px);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.product-detail-image {
    width: 100%;
    animation: slideInLeft 0.6s ease-out;
}

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

.product-detail-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.product-detail-image img:hover {
    transform: scale(1.03);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-detail-names {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease-out;
}

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

.product-detail-name {
    font-family: 'English-Bold', sans-serif;
    font-size: 2.5rem;
    color: #2a2a2a;
    margin: 0;
    letter-spacing: 0.08em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-detail-arabic-name {
    font-family: 'Arabic', 'Traditional Arabic', sans-serif;
    font-size: 2rem;
    color: #2a2a2a;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.product-cooking-section {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 12px;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-cooking-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cooking-section-title {
    font-family: 'English-Bold', sans-serif;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.1em;
}

.cooking-instructions-text {
    font-family: 'English-Regular', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

.cooking-instructions-text p {
    margin: 0.75rem 0;
}

.cooking-instructions-text p:first-child {
    margin-top: 0;
}

.cooking-instructions-text p:last-child {
    margin-bottom: 0;
}

.cooking-safety-notice {
    margin-top: 1.5rem !important;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
}

.product-not-found {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem;
}

.product-not-found h2 {
    font-family: 'English-Bold', sans-serif;
    font-size: 2rem;
    color: #2a2a2a;
    margin-bottom: 1rem;
}

.product-not-found p {
    font-family: 'English-Regular', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-name {
        font-size: 2rem;
    }

    .product-detail-arabic-name {
        font-size: 1.5rem;
    }
}

/* ===== Floating SMS Button ===== */
.floating-sms-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: bounceIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
    50% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sms-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #102c2c 0%, #1a4444 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(16, 44, 44, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.sms-bubble:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 44, 44, 0.4);
}

.sms-bubble:active {
    transform: scale(0.95);
}

.sms-icon {
    width: 28px;
    height: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.sms-bubble:hover .sms-icon {
    transform: scale(1.1);
}

/* Pulse animation for attention */
.sms-bubble::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #102c2c;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .floating-sms-button {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .sms-bubble {
        width: 56px;
        height: 56px;
    }

    .sms-icon {
        width: 26px;
        height: 26px;
    }
}

/* Loading & Empty States */
.loading-spinner,
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.loading-spinner p,
.no-products p {
    font-size: 1.25rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .products-container {
        padding: 0 1rem 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}