* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4AF37;
    --primary-dark: #B38B2D;
    --text-color: #2C2C2C;
    --text-light: #666;
    --background-light: #fafafa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 15px rgba(0,0,0,0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 2.5rem;
    z-index: 1000;
    transition: var(--transition);
}

header:hover {
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-dark);
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Sections */
.hero, .recipe-hero, .ingredients-hero, .products-hero, .blog-hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 0 1.5rem;
    position: relative;
}

.hero::before, .recipe-hero::before, .ingredients-hero::before, .products-hero::before, .blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero > *, .recipe-hero > *, .ingredients-hero > *, .products-hero > *, .blog-hero > * {
    position: relative;
    z-index: 2;
}

.hero h1, .recipe-hero h1, .ingredients-hero h1, .products-hero h1, .blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p, .recipe-hero p, .ingredients-hero p, .products-hero p, .blog-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Story Section */
.story {
    padding: 6rem 0;
    background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)), url('Images/dubai skyline.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.story .container {
    position: relative;
    z-index: 2;
}

.story h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.story .history {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.story .history h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
}

.story .history h3:first-child {
    margin-top: 0;
}

.story .history p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-color);
}

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

.story .feature {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.story .feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story .feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.story .feature p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Recipe Page Styles */
.recipe-content {
    padding: 4rem 0;
    background-color: #fafafa;
}

.recipe-intro {
    text-align: left;
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.recipe-intro h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    position: relative;
    padding-bottom: 1rem;
}

.recipe-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.recipe-intro p {
    text-align: justify;
    margin-bottom: 1.8rem;
    line-height: 1.8;
    color: #444;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.recipe-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    align-items: start;
}

.ingredients {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 100%;
}

.ingredients h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    position: relative;
    padding-bottom: 0.8rem;
}

.ingredients h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.ingredients ul {
    list-style: none;
    padding: 0;
}

.ingredients li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.ingredients li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.imperial, .metric {
    font-weight: 500;
    color: var(--primary-color);
    min-width: 60px;
}

.recipe-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.recipe-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recipe-steps {
    margin-bottom: 4rem;
}

.step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    position: relative;
    padding-bottom: 0.8rem;
}

.step-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.step-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

.step-content .alternative-method {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.95em;
}

.step-content em {
    font-style: italic;
    color: #666;
    background-color: #f9f9f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.step-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.step-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    min-height: 200px;
}

.step:hover .step-image img {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.step-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.step-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    min-height: 200px;
}

.step:hover .step-images img {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.recipe-tips {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.recipe-tips h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    position: relative;
    padding-bottom: 0.8rem;
}

.recipe-tips h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.recipe-tips ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.recipe-tips li {
    margin-bottom: 1rem;
    padding-left: 1.8rem;
    position: relative;
    text-align: left;
    line-height: 1.6;
    color: #444;
}

.recipe-tips li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.quick-note {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.quick-note p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

.quick-note p:last-child {
    margin-bottom: 0;
}

.quick-note em {
    color: var(--primary-color);
    font-style: italic;
}

/* Cost Breakdown Styles */
.cost-breakdown {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: 3rem;
}

.cost-breakdown h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: clamp(1.4rem, 3vw, 1.6rem);
    position: relative;
    padding-bottom: 0.8rem;
}

.cost-breakdown h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.cost-table th,
.cost-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cost-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.cost-table tbody tr:hover {
    background-color: #f9f9f9;
}

.cost-table tfoot {
    font-weight: bold;
    background-color: #f9f9f9;
}

.cost-table tfoot td {
    padding: 1.2rem 1rem;
}

.cost-table a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.cost-table a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.final-thoughts {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.final-thoughts h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

.final-thoughts p {
    color: #444;
    line-height: 1.8;
    margin: 0;
}

/* Ingredients Page Styles */
.ingredients-content {
    padding: 4rem 0;
}

.ingredients-intro {
    text-align: left;
    margin: 0 auto 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ingredients-intro h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    position: relative;
    padding-bottom: 1rem;
}

.ingredients-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.ingredients-intro p {
    text-align: justify;
    margin-bottom: 1.8rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: #444;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.ingredient-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.ingredient-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.ingredient-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.ingredient-card p {
    text-align: justify;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

.ingredient-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.ingredient-card:hover .ingredient-image {
    transform: scale(1.02);
}

.affiliate-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.affiliate-link:hover {
    background-color: var(--primary-dark);
}

.decorations-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
    text-align: left;
}

.decorations-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.decorations-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.ingredient-tips {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.ingredient-tips h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-content {
    max-width: 600px;
    margin: 0 auto;
}

.tips-content ul {
    list-style-type: none;
    padding: 0;
}

.tips-content li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    text-align: left;
}

.tips-content li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Products Page Styles */
.products-content {
    padding: 4rem 0;
}

.products-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.products-table {
    overflow-x: auto;
    margin-bottom: 3rem;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
    white-space: nowrap;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Blog Page Styles */
.blog-content {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-post h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-sidebar {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.categories ul {
    list-style: none;
    margin-top: 1rem;
}

.categories li {
    margin-bottom: 0.5rem;
}

.categories a {
    color: #333;
    text-decoration: none;
}

.categories a:hover {
    color: var(--primary-color);
}

.newsletter {
    margin-top: 2rem;
}

.newsletter form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.newsletter input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.newsletter button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter button:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    position: relative;
    width: 100%;
}

footer p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Region Selector Styles */
.region-selector {
    background-color: var(--white);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    box-shadow: var(--shadow-sm);
}

.region-selector .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.region-selector label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.region-selector select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.region-selector select:hover {
    border-color: var(--primary-color);
}

/* Adjust main content for fixed header and region selector */
main {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero, .recipe-hero, .ingredients-hero, .products-hero, .blog-hero {
        height: 60vh;
    }

    .region-selector .container {
        justify-content: center;
    }

    .recipe-intro {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .recipe-details,
    .step {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .ingredients {
        padding: 1.5rem;
    }

    .step-image img,
    .step-images img {
        height: 250px;
    }

    .step-images {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 2rem;
    }

    .newsletter form {
        flex-direction: column;
    }

    .ingredient-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .ingredient-card {
        padding: 1.5rem;
    }

    .ingredient-image {
        height: 200px;
    }

    .ingredients-intro {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .tips-content {
        padding: 0 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .story {
        padding: 4rem 0;
        background-attachment: scroll;
    }

    .story .history {
        padding: 2rem;
    }

    .cost-breakdown {
        padding: 1.5rem;
    }

    .cost-table {
        font-size: 0.9rem;
    }

    .cost-table th,
    .cost-table td {
        padding: 0.8rem;
    }

    .final-thoughts {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero h1, .recipe-hero h1, .ingredients-hero h1, .products-hero h1, .blog-hero h1 {
        font-size: 1.8rem;
    }

    .hero p, .recipe-hero p, .ingredients-hero p, .products-hero p, .blog-hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .ingredient-card {
        padding: 1rem;
    }

    .ingredient-image {
        height: 150px;
    }

    .step {
        padding: 1rem;
    }

    .blog-post {
        padding: 1rem;
    }

    .newsletter input {
        min-width: 100%;
    }

    .story .history {
        padding: 1.5rem;
    }

    .story .feature {
        padding: 1.5rem;
    }

    .cost-breakdown {
        padding: 1rem;
    }

    .cost-table {
        font-size: 0.85rem;
    }

    .cost-table th,
    .cost-table td {
        padding: 0.6rem;
    }

    .final-thoughts {
        padding: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .read-more:hover {
        text-decoration: none;
    }

    .categories a:hover {
        color: #333;
    }

    .newsletter button:hover {
        background-color: #8B4513;
    }

    .cta-button:hover {
        transform: none;
        box-shadow: none;
    }

    nav ul li a:hover::after {
        width: 0;
    }
}

/* General text alignment */
p {
    text-align: justify;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Keep headings left-aligned for better hierarchy */
h1, h2, h3, h4, h5, h6 {
    text-align: left;
}

.step-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.step-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Image Optimization Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
    opacity: 1;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.step-image,
.step-images {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.step-image img,
.step-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.step-image img:hover,
.step-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Remove the loading animation overlay */
.step-image::after,
.step-images::after {
    display: none;
}

/* Error state */
.step-image img.error,
.step-images img.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

.step-image img.error::after,
.step-images img.error::after {
    content: "Failed to load image";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Products page styles */
.brand-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.products-table td {
    vertical-align: middle;
    padding: 15px;
}

.products-table td:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 15px;
}

.affiliate-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.affiliate-link:hover {
    background-color: var(--primary-dark);
} 