body {
    margin: 0;
    font-family: Arial, sans-serif;
    direction: rtl;
    background: #f6f4f0;
    color: #222;
}

.container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

h1 {
    margin: 0;
    font-size: 30px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow:  4px 18px rgba(0,0,0,0.08);
}

.btn, button {
    background: #111;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
}

header .btn {
    font-size: 16px;
    padding: 13px 22px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    direction: rtl;
}

.site-header-brand {
    flex: 0 0 auto;
}

.site-header-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-header-nav .btn {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header-brand {
        align-self: center;
    }

    .site-header-nav {
        justify-content: center;
        width: 100%;
    }
}

.secondary {
    color: #111;
    text-decoration: none;
    border: 1px solid #111;
    padding: 10px 16px;
    border-radius: 999px;
}

form {
    display: grid;
    gap: 12px;
}

label {
    font-weight: bold;
    margin-top: 8px;
}

input, textarea, select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

textarea {
    min-height: 80px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background: #f1f1f1;
}

.message {
    background: #e8ffe8;
    border: 1px solid #8bd58b;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.receipt-num {
    font-weight: bold;
    background: #f6f4f0;
    padding: 12px;
    border-radius: 12px;
}

.logo {
    height: 60px;
}

.hero{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    margin-bottom:30px;
}

.hero-image{
    width:100%;
    height:550px;
    object-fit:cover;
    display:block;
}

.hero-overlay{
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,0.25);

    color:white;
    text-align:center;
}

.hero-overlay h1 {
    font-size: 70px;
    margin-bottom: -25px;
}

.hero-overlay p {
    font-size: 30px;
    margin-bottom: 85px;
}


.hero-overlay .btn {
    font-size: 25px;
    padding: 25px 45px;
}

.header-logo{
    height:110px;
    width:auto;
}

.site-footer{
    margin-top:70px;
    padding:35px 0;
    text-align:center;
    border-top:1px solid #ddd;
}

.footer-links{
    display:flex;
    justify-content:center;
    gap:28px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.footer-links a{
    color:#111;
    text-decoration:none;
    font-weight:600;
}

.footer-links a:hover{
    text-decoration:underline;
}

.site-footer p{
    color:#777;
    font-size:14px;
}

.remove-btn{
    background: transparent;
    color: #111;
    border: 1px solid #111;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    width: auto;
    min-width: 120px;
}

.remove-btn:hover{
    background: #111;
    color: white;
}


.product-gallery{
    width:100%;
}

.main-product-image{
    width:100%;
    max-width:450px;
    border-radius:12px;
    margin-bottom:15px;
    display:block;
}

.product-thumbnails{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.product-thumbnail{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:10px;
    cursor:pointer;
    border:1px solid #ddd;
}

.product-thumbnail:hover{
    border-color:#111;
}

.no-product-image{
    width:100%;
    max-width:450px;
    height:320px;
    border-radius:12px;
    background:#f1f1f1;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#777;
}

.product-image-tall{
    width:100%;
    height:550px;
    object-fit:cover;
    display:block;
}

.product-image-square{
    width:100%;
    height:320px;
    object-fit:cover;
    display:block;
}


.legal-page {
    max-width: 1100px;
}

.legal-card {
    padding: 45px;
    line-height: 1.9;
}

.legal-card h1 {
    margin-bottom: 25px;
}

.legal-card h2 {
    margin-top: 35px;
}


html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}


.home-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}


.home-top-cards .card {
    padding: 12px 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-top-cards .card h2 {
    font-size: 27px;
    line-height: 1.15;
    margin: 4px 0 10px;
}


.home-top-cards .card p {
    font-size: 20px;
    line-height: 1.45;
    margin: -5px 30px 10px;
}

.home-top-cards .card .btn {
    font-size: 19px;
    padding: 16px 24px;
    margin-top: auto;
}


.home-brand-story h2 {
    font-size: 36px;
    line-height: 1.25;
}

.home-brand-story p {
    font-size: 24px !important;
    line-height: 1.9;
}

.home-brand-story .btn {
    font-size: 22px !important;
    padding: 18px 34px !important;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header-logo {
        height: 80px;
    }

    .hero-image {
        height: 360px;
    }

.hero-overlay h1 {
    font-size: 48px;
}

.hero-overlay p {
    font-size: 38px;
}

.hero-overlay .btn {
    font-size: 17px;
    padding: 14px 24px;
}

    .btn,
    button {
        font-size: 14px;
        padding: 10px 16px;
    }

    header .btn {
    font-size: 15px;
    padding: 11px 17px;
}

    .product-thumbnail {
        width: 65px;
        height: 65px;
    }

    .main-product-image {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}


@media (max-width: 768px) {
    .home-collection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

.home-collection-grid .card {
    padding: 6px 8px 12px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.home-collection-grid .card h2 {
    font-size: 16px;
    line-height: 1.15;
    margin: 4px 0 8px;
}

.home-collection-grid .card p {
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 10px;
}

.home-collection-grid .card .btn {
    font-size: 13px;
    padding: 10px 13px;
    white-space: normal;
    margin-top: auto;
}
}


.ltr-page {
    direction: ltr;
    text-align: left;
}

.ltr-page table th,
.ltr-page table td {
    text-align: left;
}

.ltr-page h1,
.ltr-page h2,
.ltr-page h3,
.ltr-page p,
.ltr-page label {
    text-align: left;
}

body.ltr-page {
    direction: ltr;
    text-align: left;
}

body.ltr-page .card,
body.ltr-page form,
body.ltr-page table,
body.ltr-page th,
body.ltr-page td,
body.ltr-page h1,
body.ltr-page h2,
body.ltr-page h3,
body.ltr-page p,
body.ltr-page label {
    direction: ltr;
    text-align: left;
}

body.ltr-page input,
body.ltr-page textarea {
    direction: ltr;
    text-align: left;
}


.legal-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.legal-logo img {
    height: 75px;
    width: auto;
}

.legal-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .legal-top-nav {
        flex-direction: column;
        align-items: center;
    }

    .legal-logo img {
        height: 70px;
    }

    .legal-nav-buttons {
        justify-content: center;
    }
}


.product-page-nav{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:flex-end;
}

.product-page-nav .btn{
    white-space:nowrap;
}

/* Riders' Favorites - align product buttons */
section .home-collection-grid:not(.home-top-cards) .card {
    display: flex;
    flex-direction: column;
}

section .home-collection-grid:not(.home-top-cards) .card .btn {
    margin-top: auto;
}



/* =========================
   Cancel Order Page
========================= */

.cancel-page{
    max-width:760px;
}

.cancel-page header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:24px;
}

.cancel-order-form{
    max-width:680px;
    margin:0 auto;
}

.warning-box{
    background:#fff8e6;
    border:1px solid #f0d58a;
    color:#7a5b00;
    border-radius:14px;
    padding:16px;
    margin-bottom:24px;
    line-height:1.7;
}

.form-group{
    margin-bottom:20px;
}

.cancel-order-form label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
}

.cancel-order-form select,
.cancel-order-form textarea{
    width:100%;
    box-sizing:border-box;
}

.cancel-order-form textarea{
    min-height:120px;
    resize:vertical;
}

.checkbox-label{
    display:flex !important;
    align-items:center;
    gap:10px;
    font-weight:normal !important;
}

.form-actions{
    margin-top:28px;
}

.form-actions .remove-btn{
    width:100%;
    background:#c62828;
    color:#fff;
    border:1px solid #c62828;
    font-size:16px;
    padding:14px;
}

.form-actions .remove-btn:hover{
    background:#b71c1c;
    border-color:#b71c1c;
}

@media (max-width:768px){
    .cancel-page header{
        flex-direction:column;
        text-align:center;
    }

    .cancel-order-form{
        max-width:100%;
    }
}
