/**
Theme Name: Vitraform
Author: Storehub.io
Author URI: https://storehub.io
Description: Manufacturer of Laboratory Glassware, and agents for Glassco Laboratory Equipment, supplying Laboratory Glassware, Plasticware, Porcelain ware and other consumables.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitraform
Template: astra
*/

/* Vertically align LOGIN button with navigation menu items (Register button) */
.header-widget-area .wp-block-buttons {
    margin: 0;
    display: flex;
    align-items: center;
}

.header-widget-area .wp-block-button {
    margin: 0;
}

.header-widget-area .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Ensure consistent line-height between Register and LOGIN buttons */
.site-header .menu-link,
.header-widget-area .wp-block-button__link {
    line-height: 2.7;
}

/* Remove excess vertical padding from LOGIN button to match Register button height */
.header-widget-area .wp-block-button__link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Move LOGIN button down by 50% of its height, then move top up by 5% to make it taller */
.header-widget-area .wp-block-buttons {
    transform: translateY(45%);
}

/* Add small top padding to make button 5% taller */
.header-widget-area .wp-block-button__link {
    padding-top: 0.135em !important;
}

/* Hide Register button when user is logged in */
body.logged-in .ast-custom-button-link[href*="my-account"][aria-label="Register"],
body.logged-in .ast-custom-button-link[href*="my-account"] .ast-custom-button:contains("Register") {
    display: none !important;
}

/* Alternative selector to hide Register button for logged-in users */
body.logged-in a[aria-label="Register"] {
    display: none !important;
}

/* ========================================
   Responsive Logo Sizing
   ======================================== */

/* Base responsive logo styling */
.custom-logo {
    max-width: 100%;
    height: auto !important;
    width: auto !important;
}

/* Tablet landscape and smaller - reduce logo to 300px max */
@media (max-width: 1200px) {
    .custom-logo {
        max-width: 300px;
    }
}

/* Tablet portrait - reduce logo to 250px max */
@media (max-width: 992px) {
    .custom-logo {
        max-width: 250px;
    }
}

/* Mobile landscape - reduce logo to 200px max */
@media (max-width: 768px) {
    .custom-logo {
        max-width: 200px;
    }
}

/* Mobile portrait - reduce logo to 150px max */
@media (max-width: 576px) {
    .custom-logo {
        max-width: 150px;
    }
}
/* ========================================
   Out of Stock Popup Styles
   ======================================== */

.vitraform-oos-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vitraform-oos-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: vitraform-popup-fade-in 0.3s ease;
}

@keyframes vitraform-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vitraform-oos-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.vitraform-oos-popup-close:hover {
    color: #333;
}

.vitraform-oos-popup-icon {
    color: #f39c12;
    margin-bottom: 15px;
}

.vitraform-oos-popup-content h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.vitraform-oos-popup-content p {
    margin: 0 0 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.vitraform-oos-popup-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.vitraform-oos-popup-btn:hover {
    background: #005a87;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .vitraform-oos-popup-content {
        padding: 30px 20px;
    }
    
    .vitraform-oos-popup-content h3 {
        font-size: 20px;
    }
    
    .vitraform-oos-popup-content p {
        font-size: 14px;
    }
}
