/* Theme CSS - All Button Styles and Components */

/* Remove click animations and transforms */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow text selection for input fields and text areas */
input, textarea, [contenteditable] {
    -webkit-user-select: text !important;
    -khtml-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Remove focus outlines and transforms */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: none !important;
    transform: none !important;
    transition: none !important;
}

/* Remove hover effects that cause transforms */
button:hover, a:hover {
    transform: none !important;
    transition: none !important;
}

/* Remove active states that cause transforms */
button:active, a:active {
    transform: none !important;
    transition: none !important;
}

/* Mobile bottom navigation spacing */
@media (max-width: 1023px) {
    body {
        padding-bottom: 80px;
    }
    
    /* Remove bottom padding when bottom nav is hidden */
    body.no-bottom-nav {
        padding-bottom: 0;
    }
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: none;
    position: relative;
    overflow: hidden;
    /* Updated clip-path for subtle corner clips matching your image */
    clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
}

/* Clip Styles */
.clip {
    border-radius: 8px;
    padding: 12px 24px;
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    overflow: hidden;
}

.productclip {
    border-radius: 24px;
    overflow: hidden;
}

.cardclip {
    border-radius: 18px;
}

/* Primary Button Styling */
.btn-primary {
    background: linear-gradient(to top, #0A3167, #12376e, #23487f);
    color: white;
    border-radius: 12px;
    padding: 8px 14px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: none;
    width: 100%;
    font-size: 12px;
    /* Updated clip-path for a more subtle clipped corner effect */
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    position: relative;
    overflow: hidden;
}
.btn-sale {
    
    background: #ffff;
    border-radius: 12px;
    color: #DC143C;
    padding: 8px 14px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0px;
    cursor: pointer;
    transition: none;
    width: 100%;
    font-size: 12px;
    /* Updated clip-path for a more subtle clipped corner effect */
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    position: relative;
    overflow: hidden;
}

.btn-accent {
    background-color: #C5A572;
    color: white;
    border-radius: 12px;
    padding: 8px 14px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: none;
    width: 100%;
    font-size: 14px;
    /* Updated clip-path for a more subtle clipped corner effect */
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    position: relative;
    overflow: hidden;
}

.btn-success {
    background-color: rgb(28, 182, 62);
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: none;
    width: 100%;
    font-size: 14px;
    /* Updated clip-path for a more subtle clipped corner effect */
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    position: relative;
    overflow: hidden;
}

/* Wishlist Heart Icon Button */
.btn-wishlist {
    background: none;
    /* border: 2px solid #e5e7eb; */
    border-radius: 8px;
    color: gray;
    padding: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    width: auto;
    min-width: 10px;
    height: 30px;
    display: fixed;
}

.btn-wishlist:hover {
    border-color: #DC143C;
    background-color: none;
}

.btn-wishlist.wishlist-active {
    background-color: #DC143C;
    border-color: #DC143C;
    color: white;
}

.btn-wishlist.wishlist-active:hover {
    background-color: #b91c3c;
    border-color: #b91c3c;
}

/* Design and Background Classes */
.design {
    background: linear-gradient(to top, #0A3167, #12376e, #23487f);
}

.background {
    background-image: url('<?= URLROOT ?>/images/screen/loginbg.png');
}

/* Native App Login Page Styles */
.login-page {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Smooth transitions for login form */
.login-form {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Native app input styles */
.native-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Native app button styles */
.native-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
