/* Basic CSS for storefront */
* {
    box-sizing: border-box;
    font-family: 'Source Sans Pro';
}

body {
    font-family: 'Source Sans Pro';
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.nav-logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
    text-decoration: none;
}

.nav-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand-name {
    font-size: 1.5rem;
}

.nav-logo img {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    object-fit: contain;
}

/* Shop Page Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#sort-select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Category Grid */
.category-grid-section {
    margin-bottom: 2rem;
}

.category-grid-section h2 {
    margin-bottom: 1rem;
}

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

.category-card {
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.category-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-main-image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

.category-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.category-title-row h1 {
    margin: 0;
    text-align: center;
}

.category-title-row .category-image-container {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    aspect-ratio: 1 / 1;
    margin: 0;
}

.category-title-row .category-main-image {
    max-height: 100px;
}

.category-header .category-description {
    max-width: 900px;
    margin: 0 auto 1rem;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 768px) {
    .category-main-image {
        max-height: 160px;
    }
}

.category-placeholder-image {
    width: 80%;
    height: 80%;
    background-color: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
}

.category-info {
    padding: 1rem;
    text-align: center;
}

.category-name {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.category-product-count {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

/* Products Grid */
.products-grid-section h2 {
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card-link {
    text-decoration: none;
    color: #333;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
}

.product-card h3 {
    margin: 1rem 0 0.5rem 0;
    padding: 0 1rem;
    font-size: 1.1rem;
}

.product-price {
    margin: 0.5rem 0;
    padding: 0 1rem;
    font-weight: bold;
    color: #e74c3c;
}

.product-category {
    margin: 0.5rem 0;
    padding: 0 1rem;
    font-size: 0.8rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    text-align: center;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.nav-dropdown-link:hover {
    background-color: #f0f0f0;
}

.nav-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: 0;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s;
    cursor: pointer;
}

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

.icon-search {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.search-panel {
    position: absolute;
    z-index: 110;
    top: calc(100% + 0.25rem);
    right: 0;
    width: min(420px, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.search-panel[hidden] {
    display: none;
}

.search-panel label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.search-panel input {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid #aaa;
    border-radius: 4px;
    font: inherit;
}

.search-panel input:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.search-status {
    margin: 0.65rem 0 0.4rem;
    color: #666;
    font-size: 0.9rem;
}

.search-results {
    max-height: min(420px, 60vh);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.search-result-link {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.25rem;
    border-top: 1px solid #eee;
    color: inherit;
    text-decoration: none;
}

.search-result-link:hover,
.search-result-link:focus,
.search-result-link.is-active {
    background: #f5f5f5;
}

.search-result-link img,
.search-result-image-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background: #f3f3f3;
    object-fit: cover;
}

.search-result-name {
    font-weight: 600;
    line-height: 1.3;
}

.search-result-price {
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Mobile navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

.hamburger {
    width: 24px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Responsive design */
@media screen and (max-width: 1240px) {
    .nav-logo img {
        width: 48px;
        height: 48px;
    }

    .nav-brand-name {
        font-size: 1.125rem;
    }

    .nav-menu {
        position: absolute;
        left: -1rem;
        right: -1rem;
        top: 100%;
        flex-direction: column;
        background-color: #fff;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 1s;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f9f9f9;
        margin-left: 1rem;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 500px;
    }

    .nav-dropdown-link {
        padding-left: 2rem;
    }
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero-section {
    background-color: #f8f9fa;
    padding: 4rem 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #555;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Shop by Category */
.shop-by-category {
    margin-bottom: 3rem;
}

.shop-by-category h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.category-card {
    display: block;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-name {
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Featured Products */
.featured-products {
    margin-bottom: 3rem;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

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

.product-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

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

 .product-image-placeholder {
     background-color: #f0f0f0;
     height: 200px;
     border-radius: 4px;
     margin-bottom: 1rem;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #999;
 }

.product-card .product-image {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 4px;
  }

/* Homepage specific product image styling to ensure proper fit */
.homepage-product-image {
      width: 100%;
      height: auto;
      object-fit: contain;
      max-height: 300px;
      display: block;
      margin: 0 auto;
  }

/* Specific styling for product detail page images */
.product-detail .product-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 1rem;
    align-items: start;
}

.product-detail .product-images .product-media-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-detail .product-images .product-image,
.product-detail .product-images .product-video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: contain;
}

.product-detail .product-images .product-video {
    background-color: #111;
}

.product-detail .product-images .product-image-placeholder {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Remove underlines from price and description links in category listings */
.product-card .product-price,
.product-card .product-description {
    text-decoration: none !important;
}

/* Make sure the entire card link still works but remove underlines from nested elements */
.product-card {
    text-decoration: none;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-price {
    font-weight: 500;
    color: #007bff;
    margin: 0;
}

/* Store Value Section */
.store-value {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
}

.store-value h2 {
    margin-bottom: 1rem;
    color: #333;
}

/* Promotional Section */
.promotional-section {
    background-color: #e9ecef;
    padding: 3rem 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
}

.promotional-content h2 {
    margin-bottom: 1rem;
    color: #333;
}

/* New Arrivals */
.new-arrivals {
    margin-bottom: 3rem;
}

.new-arrivals h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

/* About Teaser */
.about-teaser {
    text-align: center;
    margin-bottom: 3rem;
}

.about-teaser h2 {
    margin-bottom: 1rem;
    color: #333;
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.contact-cta h2 {
    margin-bottom: 1rem;
    color: #333;
}

/* Contact form */
.contact-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.contact-page h1 {
    margin-bottom: 0.5rem;
}

.terms-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.terms-page h1 {
    margin-bottom: 0.75rem;
}

.terms-page .terms-intro {
    margin: 0 0 2rem;
    color: #666;
}

.terms-page section {
    margin-bottom: 1.5rem;
}

.terms-page h2 {
    margin: 0 0 0.5rem;
    color: #333;
    font-size: 1.25rem;
}

.terms-page p {
    margin: 0;
}

.terms-page .terms-conclusion {
    margin-top: 2rem;
}

.refund-policy-page > p:not(.terms-intro):not(.terms-conclusion):not(.refund-policy-updated) {
    margin-bottom: 1rem;
}

.refund-policy-updated {
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    color: #666;
    font-size: 0.9rem;
}

.contact-intro {
    margin: 0 0 1.5rem;
    color: #666;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    color: #333;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form button {
    justify-self: start;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.contact-notice {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 4px;
}

.contact-notice-success {
    color: #155724;
    background: #d4edda;
}

.contact-notice-error {
    color: #721c24;
    background: #f8d7da;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #f4f4f4;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .store-value,
    .promotional-section,
    .contact-cta {
        padding: 2rem 1rem;
    }
}

/* Shopping cart and add-to-cart controls */
.cart-link {
    position: relative;
}

.icon-cart {
    width: 1.35rem;
    height: 1.35rem;
}

.cart-count {
    display: inline-flex;
    min-width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #b64035;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.cart-count[hidden] {
    display: none;
}

.cart-link .cart-count {
    position: absolute;
    top: -0.45rem;
    right: -0.55rem;
}

.icon-cart {
    display: inline-block;
    line-height: 1;
}

.product-card-content {
    display: block;
    color: inherit;
    text-decoration: none;
}

.btn-add-to-cart {
    display: block;
    width: calc(100% - 2rem);
    margin: 0.75rem 1rem 1rem;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.btn-add-to-cart:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.purchase-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.purchase-area label {
    font-weight: 600;
}

.purchase-area input {
    width: 5.5rem;
    padding: 0.65rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font: inherit;
}

.purchase-area .btn-add-to-cart {
    width: auto;
    margin: 0;
}

.cart-announcement {
    flex-basis: 100%;
    min-height: 1.5rem;
    margin: 0;
    color: #315d32;
}

.cart-page h1 {
    margin-bottom: 0.5rem;
}

.cart-status {
    min-height: 1.5rem;
    color: #555;
}

.cart-empty {
    padding: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
    gap: 2rem;
    margin-top: 1.5rem;
}

.cart-content[hidden],
.cart-empty[hidden] {
    display: none;
}

.cart-items {
    display: grid;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.cart-item-image {
    width: 96px;
    height: 96px;
    border-radius: 4px;
    background: #f4f4f4;
    object-fit: contain;
}

.cart-item-name {
    color: #333;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

.cart-item-name:hover {
    text-decoration: underline;
}

.cart-item-unit-price {
    margin: 0.25rem 0 0;
    color: #666;
}

.cart-item-controls {
    display: grid;
    gap: 0.35rem;
}

.cart-item-controls label {
    font-size: 0.9rem;
}

.cart-item-controls input {
    display: block;
    width: 5rem;
    padding: 0.4rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font: inherit;
}

.cart-remove-button,
.cart-clear-button {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a3028;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cart-item-total {
    white-space: nowrap;
}

.cart-summary {
    padding: 1.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.cart-summary h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.cart-summary-note {
    color: #666;
    font-size: 0.9rem;
}

.cart-order-request {
    display: block;
    text-align: center;
}

.cart-clear-button {
    margin-top: 1rem;
}

.destination-price-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 14px;
    color: #333;
    font-size: 0.9rem;
}

.destination-price-control select {
    max-width: 190px;
    padding: 7px 28px 7px 9px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    color: #222;
}

.destination-price-control small {
    display: block;
    max-width: 230px;
    line-height: 1.2;
}

.checkout-panel {
    grid-column: 1 / 2;
    padding: 22px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
}

.checkout-address-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.checkout-address-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.checkout-address-form label span {
    display: inline;
    font-weight: 400;
    color: #666;
}

.checkout-address-form input,
.checkout-address-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font: inherit;
}

.checkout-address-form button {
    align-self: end;
    min-height: 42px;
}

.checkout-status {
    margin: 12px 0;
    color: #444;
}

.shipping-options {
    margin-top: 22px;
}

.shipping-rate-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 10px;
    border-top: 1px solid #e1e1e1;
    cursor: pointer;
}

.shipping-rate-option input {
    margin-top: 5px;
}

.shipping-rate-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipping-rate-details small {
    color: #666;
}

.cart-tax-lines {
    display: flex;
    flex-direction: column;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid #333;
    font-size: 1.15rem;
}

.cart-pay-button {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 18px 0 8px;
}

.cart-pay-button[hidden] {
    display: none;
}

.order-confirmation-page {
    max-width: 760px;
    padding-top: 36px;
    padding-bottom: 48px;
}

.order-confirmation-total {
    margin-top: 20px;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .destination-price-control {
        margin: 12px 0;
        padding: 0;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .checkout-panel {
        grid-column: auto;
        grid-row: 2;
    }

    .cart-summary {
        grid-row: 3;
    }
}

@media (max-width: 600px) {
    .checkout-address-form {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .cart-item-image {
        width: 72px;
        height: 72px;
    }

    .cart-item-controls {
        grid-column: 2;
    }

    .cart-item-total {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }
}
