* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f6fa;
    color: #333;
}


/* Layout container */

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
}


/* Header */

header {
    background: #111;
    color: white;
}

.top-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 15px 10px 15px;
    background:#111;
    color:white;
}

.top-bar h1 {
    font-size:22px;
}

.header-icons a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

#menuButton {
    background:none;
    border:none;
    color:white;
    font-size:28px;
    cursor:pointer;
    padding: 0;
}

#mobileMenu {
    display:none;
    flex-direction:column;
    background:#222;
}

#mobileMenu a {
    color:white;
    padding:15px;
    text-decoration:none;
    border-top:1px solid #333;
}

#mobileMenu.open {
    display:flex;
}

@media(min-width:750px){
    .top-bar h1 {
        font-size:32px;
    }

    .header-icons a {
        font-size: 24px;
    }

    #menuButton{
        display:none;
    }

    #mobileMenu {
        display:flex;
        flex-direction:row;
        justify-content:center;
        background:#111;
    }

    #mobileMenu a {
        border:none;
        padding:0 18px 18px 18px;
    }
}
/* Hero banner */

.hero {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    padding: 50px 0;
    text-align: center;
}


/* Section title */

.section-title {
    margin: 30px 0 15px 0;
}


/* Product Grid */

.product-grid {
    display: grid;
    grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Product card */

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    max-width: 570px;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
}

.product-card h3 {
    margin: 12px 0 10px;
    font-size: 18px;
    text-align: center;
    max-height: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.price {
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

/* Button */

button,.basketbutton {
    background: #ff5a1f;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all .3s ease;
}
.basketbutton {
    text-decoration: none;
    font-size: 14px;
    margin-top: auto;
}

button:hover,.basketbutton:hover {
    background: #e14a14;
}

.topspace {
    margin-top: 20px;
}
.bottomspace {
    margin-bottom: 20px;
}
/* Footer */

footer {
    background: #111;
    color: white;
    margin-top: 40px;
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}


/* Mobile responsiveness */

@media (max-width: 768px) {

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

}

.controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 10px;
}

.filters {
display: flex;
gap: 10px;
}

.filter-btn {
background: #ddd;
border: none;
padding: 8px 14px;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
color: #666;
font-size: 14px;
transition: all .3s ease;
}

.filter-btn.active,.filter-btn:hover {
background: #ff5a1f;
color: white;
}

#searchBox {
padding: 8px;
border-radius: 5px;
border: 1px solid #ccc;
width: 200px;
}

@media (max-width: 768px) {

.controls {
flex-direction: column;
align-items: stretch;
}

#searchBox {
width: 100%;
}

}

/* Product page layout */

.product-layout {
display: grid;
grid-template-columns: 400px 1fr;
gap: 40px;
margin-top: 30px;
}


.product-image img {
width: 100%;
border-radius: 10px;
}


/* Badge */

.badge {
display: inline-block;
background: #ff5a1f;
color: white;
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
margin-bottom: 10px;
}


/* Large price */

.price-large {
font-size: 28px;
color: #27ae60;
margin: 10px 0 20px;
}


/* Description */

.description {
line-height: 1.6;
margin-bottom: 20px;
}


/* Quantity row */

.quantity-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}


.qty-input {
width: 70px;
padding: 6px;
}


/* Basket button */

.add-to-basket-large {
background: #ff5a1f;
color: white;
border: none;
padding: 14px 24px;
font-size: 16px;
border-radius: 6px;
cursor: pointer;
margin-bottom: 20px;
}


.add-to-basket-large:hover {
background: #e14a14;
}


/* Metadata */

.product-meta {
list-style: none;
margin-top: 15px;
line-height: 1.8;
}


/* Responsive */

@media (max-width: 900px) {
 .product-layout {
  grid-template-columns: 1fr;
 }
}

/* Basket table */

.basket-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}


.basket-table th,
.basket-table td {
border-bottom: 1px solid #ddd;
padding: 12px;
text-align: left;
}


/* Remove link */

.remove-link {
color: red;
text-decoration: none;
}


/* Basket summary */

.basket-summary {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 25px;
flex-wrap: wrap;
gap: 15px;
}


.update-btn {
background: #666;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}


.checkout-btn {
background: #27ae60;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
}


/* Mobile */

@media (max-width: 768px)
{
 .basket-table {
  font-size: 14px;
 }

 .basket-summary {
  flex-direction: column;
  align-items: flex-start;
 }
}

/* Checkout layout */

.checkout-layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 40px;
margin-top: 30px;
}


/* Checkout form */

.checkout-form {
display: flex;
flex-direction: column;
gap: 20px;
}


.checkout-section {
display: flex;
flex-direction: column;
gap: 10px;
}


.checkout-section input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}

.warning {
    color: #f00;
    font-weight: bold;
}

/* Checkbox + radio rows */

.checkbox-row,
.radio-row {
display: flex;
align-items: center;
gap: 10px;
}


/* Order summary */

.order-summary {
background: white;
padding: 25px;
border-radius: 8px;
box-shadow: 0 0 8px rgba(0,0,0,0.05);
height: fit-content;
}

.order-summary p {
    margin-top: 15px;
}

.summary-item {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}


.summary-total {
display: flex;
justify-content: space-between;
font-size: 20px;
font-weight: bold;
margin-top: 15px;
}


/* Large payment button */

.checkout-btn-large {
width: 100%;
margin-top: 20px;
background: #27ae60;
color: white;
border: none;
padding: 14px;
font-size: 18px;
border-radius: 6px;
cursor: pointer;
}


/* Mobile */

@media (max-width: 900px)
{
 .checkout-layout {
  grid-template-columns: 1fr;
 }
}

/* Confirmation page layout */

.confirmation-layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 40px;
margin-top: 30px;
}


.confirmation-box {
background: white;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
}


/* Status pages */

.status-page {
display: flex;
justify-content: center;
align-items: center;
min-height: 60vh;
}


.status-box {
background: white;
padding: 40px;
border-radius: 10px;
text-align: center;
max-width: 500px;
box-shadow: 0 0 10px rgba(0,0,0,0.05);
}


.status-box.success {
border-top: 6px solid #27ae60;
}


.status-box.failure {
border-top: 6px solid #e74c3c;
}


.primary-btn {
display: inline-block;
margin-top: 20px;
padding: 12px 25px;
background: #ff5a1f;
color: white;
text-decoration: none;
border-radius: 6px;
}


/* Mobile */

@media (max-width: 900px)
{
 .confirmation-layout {
  grid-template-columns: 1fr;
 }
}

#paypal-button-container {
    margin-top:20px;
}

#paymenterror {
    color:#f00;
    font-weight:bold;
}

#paypalwaiting {
    display: none;
}

.basket-section {
    background:#fff;
    padding:25px;
    margin-bottom:30px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.basket-section.highlight {
    border-left:6px solid #3498db;
}

.basket-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.basket-section h4 {
    font-size: 18px;
}

.basket-item {
    display:flex;
    gap:20px;
    padding:20px;
    margin-bottom:20px;
    background:white;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.basket-cover {
    width:80px;
    height:80px;
    object-fit:cover;
    flex-shrink:0;
}

.basket-details {
    flex:1;
    display:flex;
    flex-direction:column;
}

.basket-total {
    margin-top:auto;
    font-weight:bold;
    color:#27ae60;
}

@media (max-width:700px){
    .basket-item{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .basket-cover{
        width:150px;
        height:150px;
    }
}