/* ===================================
   COMBINED STYLES
   Category pages + Customer pages
   Mobile-first responsive design
   =================================== */

/* ===================================
   CATEGORY PAGE STYLES
   =================================== */

/* === CATEGORY CONTAINER === */
.categories {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* === CATEGORY VIEW === */
.category_view {
    width: 100%;
}

.category_view h1 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 600;
    margin: 15px 0 20px;
    color: var(--c3);
}

.category_view p.cat_desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    padding: 0;
    margin: 0 0 20px;
    color: #555;
}

@media (min-width: 768px) {
    .category_view h1 {
        margin: 20px 0 30px;
    }
    
    .category_view p.cat_desc {
        padding: 0 20px;
        margin-bottom: 30px;
    }
}

@media (min-width: 1024px) {
    .category_view p.cat_desc {
        padding: 0 35px;
        margin-bottom: 40px;
    }
}

/* === SUBCATEGORIES === */
.subcategories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.subcategories > a {
    display: flex;
    align-items: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    background-color: #E1DEDA;
    padding: 10px;
    box-sizing: border-box;
    color: #333;
    min-height: 55px;
}

.subcategories > a img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 8px;
    flex-shrink: 0;
}

.subcategories > a span {
    flex: 1;
    font-size: 14px;
}

.subcategories > a:hover {
    background-color: #d5d0ca;
    color: #000;
}

/* Mobile horizontal scroll variant */
@media (max-width: 479px) {
    .subcategories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--c1) #f1f1f1;
    }
    
    .subcategories::-webkit-scrollbar {
        height: 6px;
    }
    
    .subcategories::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .subcategories::-webkit-scrollbar-thumb {
        background: var(--c1);
        border-radius: 3px;
    }

    .subcategories > a {
        flex: 0 0 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        line-height: normal;
        padding: 12px 8px;
        scroll-snap-align: start;
        min-height: auto;
    }

    .subcategories > a img {
        width: 40px;
        height: 40px;
        margin: 0 0 8px 0;
    }

    .subcategories > a span {
        flex: none;
        text-align: center;
        font-size: 12px;
        line-height: 1.2;
    }
}

@media (min-width: 480px) {
    .subcategories {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .subcategories > a span {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .subcategories {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
}

/* === PAGING / SORTING === */
.paging {
    line-height: 55px;
    background-color: #f1f1f1;
    height: auto;
    padding: 0 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.paging .orderby {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    font-size: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.paging .orderby::-webkit-scrollbar {
    display: none;
}

.paging .orderby span {
    white-space: nowrap;
    padding-right: 10px;
    color: #666;
    display: none;
}

.paging .orderby a {
    color: #443f3f;
    display: inline-block;
    text-decoration: none;
    flex: 0 0 auto;
    padding: 0 12px;
    white-space: nowrap;
    position: relative;
}

.paging .orderby a:hover {
    color: #000;
}

.paging .orderby a.active {
    font-weight: 600;
    color: #000;
}

.paging .orderby a.active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 3px;
    background-color: var(--c1);
    border-radius: 2px;
}

@media (min-width: 480px) {
    .paging {
        padding: 0 15px;
    }
    
    .paging .orderby {
        font-size: 14px;
        gap: 5px;
    }
    
    .paging .orderby span {
        display: inline;
    }
}

@media (min-width: 768px) {
    .paging {
        margin-bottom: 20px;
    }
    
    .paging .orderby {
        padding-left: 12px;
    }
}

/* === PRODUCTS GRID === */
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.products .product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 3px solid #e8e6e6;
    text-align: center;
    background: #fff;
}

.products .product:hover {
    border-color: var(--c1);
}

.products .product.empty {
    border: 0;
    visibility: hidden;
}

.products .product a.img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 240 / 345;
    padding: 5px;
    overflow: hidden;
}

.products .product a.img img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.products .product div.name {
    flex-grow: 1;
    padding: 6px 4px 0;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.3;
    min-height: 40px;
}

.products .product div.name a {
    color: #443f3f;
    text-decoration: none;
}

.products .product div.name a:hover {
    color: var(--c1);
}

.products .product span.avl {
    display: block;
    line-height: 20px;
    font-size: 12px;
    padding: 4px 0;
}

.products .product span.avl.green {
    color: #76c44d;
}

.products .product span.avl.orange {
    color: #FFBF00;
}

.products .product span.avl.red {
    color: #c3215e;
}

.products .product span.original_price {
    font-size: 13px;
    text-align: center;
    color: #6c6464;
    display: block;
    padding: 2px 0;
}

.products .product span.original_price .cross {
    text-decoration: line-through;
}

.products .product span.original_price .discount {
    color: #c3215e;
    font-weight: bold;
    margin-left: 4px;
}

.products .product span.price {
    font-size: 18px;
    color: #c3215e;
    font-weight: bold;
    line-height: 32px;
    text-align: center;
}

@media (min-width: 480px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .products .product div.name {
        font-size: 14px;
        padding: 8px 6px 0;
    }
    
    .products .product span.avl {
        font-size: 13px;
        line-height: 22px;
    }
    
    .products .product span.original_price {
        font-size: 14px;
    }
    
    .products .product span.price {
        font-size: 20px;
        line-height: 36px;
    }
}

@media (min-width: 768px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .products .product {
        border-bottom-width: 4px;
    }
    
    .products .product div.name {
        font-size: 15px;
        line-height: 1.4;
        padding: 8px 4px 0;
        min-height: 50px;
    }
    
    .products .product span.avl {
        font-size: 14px;
        line-height: 24px;
    }
    
    .products .product span.original_price {
        font-size: 15px;
    }
    
    .products .product span.price {
        font-size: 22px;
        line-height: 40px;
    }
}

@media (min-width: 1024px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .products .product {
        border-bottom-width: 5px;
    }
}

@media (min-width: 1200px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px;
    }
}

/* === PAGES BOTTOM === */
.pages_bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    margin: 30px 0;
}

.pages_bottom a.up {
    line-height: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #646464;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 4px;
}

.pages_bottom a.up:hover {
    background-color: #000;
}

.pages_bottom a#next_products {
    min-width: 200px;
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--c1);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    padding: 0 20px;
}

.pages_bottom a#next_products:hover {
    background-color: #8A6942;
}

@media (max-width: 479px) {
    .pages_bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .pages_bottom a#next_products {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .pages_bottom {
        margin: 40px 0;
    }
    
    .pages_bottom a.up {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 20px;
    }
    
    .pages_bottom a#next_products {
        height: 45px;
        line-height: 45px;
        font-size: 16px;
        min-width: 220px;
    }
}

/* === LOADING STATE === */
.products.loading {
    opacity: 0.6;
    pointer-events: none;
}

.products.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--c1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   CUSTOMER PAGE STYLES
   Login & Registration
   =================================== */

/* === BASE - MOBILE FIRST === */

/* Section wrapper */
.login,
.password-reset {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Heading - specifické pro login/password-reset */
.login h1,
.password-reset h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #333;
    text-align: center;
}

/* Info boxes */
.info-text {
    margin-bottom: 20px;
    padding: 16px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #1565C0;
    max-width: 450px;
}

.info-text.success {
    background: #e8f5e9;
    border-left-color: #4CAF50;
    color: #2e7d32;
}

.info-text.warning {
    background: #fff3e0;
    border-left-color: #FF9800;
    color: #e65100;
}

/* Colorbox - Form container */
.colorbox {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 24px;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form row - Mobile first (vertical) */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.form-row label .required {
    color: #ef4444;
}

.form-row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s;
}

.form-row input:focus {
    outline: none;
    border-color: #9c784a;
    box-shadow: 0 0 0 3px rgba(156, 120, 74, 0.1);
}

.form-row input:disabled {
    background: #e9e9e9;
    color: #666;
    cursor: not-allowed;
}

.form-row input::placeholder {
    color: #999;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #333;
}

.password-toggle:focus {
    outline: 2px solid #9c784a;
    border-radius: 4px;
}

/* Password strength */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
    display: none;
}

.password-strength.show {
    display: block;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.password-hint {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    display: none;
}

.password-hint.show {
    display: block;
}

/* Form options - Forgot password only */
.form-options {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

.forgot-password {
    color: #6f6767;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #9c784a;
}

/* Submit button */
.form-submit {
    margin-top: 8px;
}

.form-submit input[type="submit"],
.form-submit button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit input[type="submit"]:hover,
.form-submit button[type="submit"]:hover {
    background: #059669;
}

.form-submit input[type="submit"]:active,
.form-submit button[type="submit"]:active {
    transform: scale(0.98);
}

.form-submit input[type="submit"]:disabled,
.form-submit button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-submit input[type="submit"].loading,
.form-submit button[type="submit"].loading {
    position: relative;
    color: transparent;
}

.form-submit input[type="submit"].loading::after,
.form-submit button[type="submit"].loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-button 0.6s linear infinite;
}

@keyframes spin-button {
    to { transform: rotate(360deg); }
}

.form-submit button[type="submit"] i,
.form-submit input[type="submit"] i {
    margin-left: 12px;
}

/* Large submit button variant */
.form-submit.large input[type="submit"],
.form-submit.large button[type="submit"] {
    font-size: 22px;
    padding: 0 25px;
    height: 50px;
    line-height: 50px;
}

/* Form footer */
.form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-footer .no-account {
    color: #666;
    font-size: 14px;
}

.form-footer .register-link {
    color: #9c784a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-left: 8px;
    transition: color 0.2s;
}

.form-footer .register-link:hover {
    color: #8A6942;
    text-decoration: underline;
}

/* Form links */
.form-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
}

.form-links a {
    color: #6f6767;
    text-decoration: none;
    transition: color 0.2s;
}

.form-links a:hover {
    color: #000;
}

/* Login benefits */
.login-benefits {
    margin-top: 32px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-width: 450px;
}

.login-benefits h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
}

.benefits-list li i {
    color: #10b981;
    font-size: 16px;
}

/* Error states */
.form-row.error input {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-row.error input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-row .error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.form-row.error .error-message {
    display: block;
}

/* === REGISTRATION PAGE === */

.registration {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 20px 0; */
}

.registration h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #333;
}

.registration h2 {
    font-size: 20px;
    margin: 24px 0 16px 0;
    color: #333;
}

.registration .colorbox {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 32px;
    max-width: 100%;
}

.registration HR {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 24px 0;
}

/* Form rows - Grid layout */
.row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.row.full {
    grid-template-columns: 1fr;
}

.row.two {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.row.three {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.row.four {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.row label.title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.row input[type="text"],
.row input[type="email"],
.row input[type="password"],
.row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: all 0.2s;
}

.row input:focus,
.row select:focus {
    outline: none;
    border-color: #9c784a;
    box-shadow: 0 0 0 3px rgba(156, 120, 74, 0.1);
}

.row input.smaller {
    max-width: 120px;
}

/* Checkboxes */
.colorbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 2px solid #9c784a;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.colorbox input[type="checkbox"]:checked {
    background-color: #9c784a;
    border-color: #9c784a;
}

.colorbox input[type="checkbox"]:checked::after {
    content: "✔";
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Checkbox labels */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

.checkbox-label span {
    flex: 1;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

/* Submit row */
.submit_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.submit_row p.small {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.submit_row p.small i {
    color: #9c784a;
    margin-right: 6px;
}

.submit_row p.small a {
    color: #9c784a;
    text-decoration: underline;
}

.submit_row p.small a:hover {
    color: #8A6942;
}

/* Submit button for registration */
.registration #submit_bt {
    padding: 14px 32px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.registration #submit_bt:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.registration #submit_bt:active {
    transform: translateY(0);
}

/* Agreement section */
.agreement {
    margin: 24px 0;
}

.agreement hr {
    margin-bottom: 24px;
}

.agreement .row.full {
    margin-bottom: 16px;
}

.agreement .checkbox-label {
    margin-top: 8px;
}

/* ===================================
   RESPONSIVE - TABLET (600px+)
   =================================== */

@media (min-width: 600px) {
    .login h1,
    .password-reset h1 {
        font-size: 32px;
        text-align: left;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row label {
        text-align: left;
        padding-right: 0;
    }

    .form-row input {
        max-width: 100%;
    }

    .form-options {
        margin-left: 0;
    }

    .form-footer {
        padding-left: 0;
        text-align: left;
    }

    .form-links {
        margin-left: 0;
    }
}

/* ===================================
   RESPONSIVE - MOBILE (max 480px)
   =================================== */

@media (max-width: 480px) {
    .login,
    .password-reset,
    .registration {
        padding: 12px 0;
    }

    .colorbox {
        padding: 20px;
    }

    .login h1,
    .password-reset h1,
    .registration h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .row {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .registration .colorbox {
        padding: 24px 20px;
    }

    .row.three,
    .row.four {
        grid-template-columns: 1fr;
    }

    .submit_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .registration #submit_bt {
        width: 100%;
    }
}

/* ===================================
   CART / BASKET STYLES
   =================================== */

/* Layout - Mobile */
.cart_flex_container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart_flex_container .left_part {
    width: 100%;
}

.cart_flex_container .right_part {
    width: 100%;
}

/* Basket Review */
.basket_review {
    background: #f1f1f1;
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.basket_review h3 {
    font-size: 18px;
    color: var(--c1);
    margin: 0 0 20px;
}

.basket_review .row {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 4px;
    align-items: center;
}

.basket_review .row:last-child {
    background: #f1f1f1;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
}

.basket_review .img {
    flex: 0 0 60px;
}

.basket_review .img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.basket_review .item {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.basket_review .item b {
    font-size: 14px;
}

.basket_review .item .small {
    font-size: 11px;
    color: #888;
}

.basket_review .item a {
    color: var(--c1);
    text-decoration: none;
}

.basket_review .item a:hover {
    text-decoration: underline;
}

.basket_review .price {
    flex: 0 0 auto;
    text-align: right;
    font-weight: bold;
}

.basket_review .curr_symbol {
    font-size: 0.85em;
}

/* === CART DESKTOP (992px+) === */
@media (min-width: 992px) {
    .cart_flex_container {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }
    
    .cart_flex_container .left_part {
        flex: 2;
    }
    
    .cart_flex_container .right_part {
        display: block;
        flex: 1;
        position: sticky;
        top: 20px;
    }
}

/* ===================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    .products.loading::after {
        animation: none !important;
        transition: none !important;
    }
    
    .products.loading::after {
        border-top-color: var(--c1);
    }
}

@media (prefers-contrast: high) {
    .colorbox {
        border: 2px solid #999;
    }

    .form-row input {
        border-width: 2px;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .products .product {
        padding: 5px;
    }
    
    .form-row input,
    .form-submit input[type="submit"] {
        min-height: 48px;
    }

    .form-links a,
    .forgot-password {
        padding: 8px 0;
        display: inline-block;
    }
}

/* === FOCUS STATES === */
.subcategories > a:focus-visible,
.paging .orderby a:focus-visible,
.products .product a:focus-visible,
.pages_bottom a:focus-visible {
    outline: 3px solid var(--c1);
    outline-offset: 2px;
}