/**
 * Skypop Smart Menu - Mobile Styles
 * Version: 1.0.0
 */

/* ========================================
   Mobile Variables
   ======================================== */
:root {
    --ssm-mobile-bg: #000000;
    --ssm-mobile-text: #ffffff;
    --ssm-mobile-hover: #cccccc;
    --ssm-mobile-accent: #ffffff;
    --ssm-hamburger-color: #000000;
    --ssm-overlay-bg: rgba(0,0,0,0.6);
    --ssm-mobile-font-size: 16px;
}

/* ========================================
   Hamburger Button
   ======================================== */
.ssm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    order: -1;
}

.ssm-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ssm-hamburger-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.ssm-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ssm-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.ssm-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Mobile Menu Panel
   ======================================== */
.ssm-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--ssm-mobile-bg);
    z-index: 10000;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

/* Slide from right variant */
.ssm-mobile-menu.slide-right {
    left: auto;
    right: -100%;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ssm-mobile-menu.active {
    left: 0;
}

.ssm-mobile-menu.slide-right.active {
    left: auto;
    right: 0;
}

/* ========================================
   Mobile Header
   ======================================== */
.ssm-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Search */
.ssm-mobile-search {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ssm-mobile-search form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ssm-mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.ssm-mobile-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.ssm-mobile-search-btn {
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.ssm-mobile-search-btn:hover {
    color: #fff;
}

/* Mobile Bottom Links */
.ssm-mobile-bottom {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.ssm-mobile-bottom-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.ssm-mobile-bottom-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.ssm-mobile-bottom-link svg {
    opacity: 0.7;
}

.ssm-mobile-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ssm-mobile-text);
    letter-spacing: 1px;
}

.ssm-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--ssm-mobile-text);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ssm-close:hover {
    opacity: 0.7;
}

/* ========================================
   Mobile Navigation
   ======================================== */
.ssm-mobile-nav {
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
}

.ssm-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ssm-mobile-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ssm-mobile-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ssm-mobile-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 25px;
    font-size: var(--ssm-mobile-font-size);
    font-weight: 500;
    color: var(--ssm-mobile-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ssm-mobile-link:hover {
    color: var(--ssm-mobile-hover);
}

.ssm-mobile-link .ssm-badge {
    background: var(--ssm-mobile-accent);
    color: var(--ssm-mobile-bg);
}

/* Toggle Button */
.ssm-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    min-height: 56px;
    background: none;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    color: var(--ssm-mobile-text);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ssm-mobile-toggle:hover {
    background: rgba(255,255,255,0.05);
}

.ssm-mobile-toggle svg {
    transition: transform 0.3s ease;
}

.ssm-mobile-item.open .ssm-mobile-toggle svg {
    transform: rotate(180deg);
}

/* ========================================
   Mobile Submenu (Accordion)
   ======================================== */
.ssm-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    transition: max-height 0.35s ease;
}

.ssm-mobile-item.open .ssm-mobile-submenu {
    max-height: 1000px;
}

.ssm-mobile-submenu li a {
    display: block;
    padding: 14px 25px 14px 40px;
    font-size: 14px;
    color: var(--ssm-mobile-hover);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ssm-mobile-submenu li a:hover {
    color: var(--ssm-mobile-text);
    background: rgba(255,255,255,0.05);
}

.ssm-mobile-heading {
    padding: 15px 25px 8px 40px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ssm-mobile-accent);
    opacity: 0.7;
}

/* ========================================
   Overlay
   ======================================== */
.ssm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ssm-overlay-bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.ssm-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Mobile Breakpoint
   ======================================== */
@media (max-width: 1024px) {
    .ssm-hamburger {
        display: flex;
    }

    .ssm-nav-wrapper {
        display: none;
    }

    .ssm-container {
        height: 130px;
        padding: 0 15px;
    }

    .ssm-logo img {
        max-height: 116px !important;
        transition: max-height 0.3s ease;
    }

    /* Compact header when scrolled on mobile */
    .ssm-header.scrolled .ssm-container {
        height: 200px;
    }

    .ssm-header.scrolled .ssm-logo img {
        max-height: 116px !important;
    }

    /* Mobile spacer */
    .ssm-header-spacer {
        height: 130px;
    }

    /* Hide wishlist and account icons on mobile - they go in menu */
    .ssm-icons .ssm-wishlist,
    .ssm-icons .ssm-account-toggle {
        display: none !important;
    }

    .ssm-icons {
        gap: 8px;
    }

    .ssm-icon {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   Small Mobile
   ======================================== */
@media (max-width: 480px) {
    .ssm-mobile-menu {
        width: 100%;
        max-width: none;
    }

    .ssm-mobile-link {
        padding: 16px 20px;
    }

    .ssm-mobile-submenu li a {
        padding: 12px 20px 12px 35px;
    }

    .ssm-mobile-heading {
        padding: 12px 20px 6px 35px;
    }
}

/* ========================================
   No Scroll on Body When Menu Open
   ======================================== */
body.ssm-menu-open {
    overflow: hidden;
}

/* ========================================
   Touch Improvements
   ======================================== */
@media (hover: none) {
    .ssm-mobile-link:active {
        background: rgba(255,255,255,0.1);
    }

    .ssm-mobile-toggle:active {
        background: rgba(255,255,255,0.1);
    }
}


/* ========================================
   Cart Icon - Active State (has items)
   ======================================== */

/* Cart icon turns red when items are in cart */
.ssm-cart:has(.ssm-cart-count) {
    color: #e53935;
}

.ssm-cart:has(.ssm-cart-count):hover {
    color: #c62828;
}

/* Cart count badge styling */
.ssm-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: cartPulse 0.3s ease-out;
}

/* Pulse animation when count changes */
@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure cart icon is relatively positioned for badge */
.ssm-cart {
    position: relative;
}

/* ========================================
   Cart Toast Notification
   ======================================== */

.ssm-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ssm-toast {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
    min-width: 320px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ssm-toast.active {
    transform: translateX(0);
    opacity: 1;
}

.ssm-toast.removing {
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

/* Toast Header */
.ssm-toast-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ssm-toast-image {
    width: 60px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.ssm-toast-content {
    flex: 1;
    min-width: 0;
}

.ssm-toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ssm-toast-message {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #16a34a;
    font-weight: 500;
}

.ssm-toast-message svg {
    flex-shrink: 0;
}

/* Close Button */
.ssm-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.ssm-toast-close:hover {
    color: #333;
}

/* Toast Buttons */
.ssm-toast-buttons {
    display: flex;
    gap: 10px;
}

.ssm-toast-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ssm-toast-btn-cart {
    background: #f5f5f5;
    color: #333;
}

.ssm-toast-btn-cart:hover {
    background: #e8e8e8;
    color: #000;
}

.ssm-toast-btn-checkout {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
}

.ssm-toast-btn-checkout:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Progress Bar */
.ssm-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    width: 100%;
    transform-origin: left;
    animation: ssm-toast-progress 5s linear forwards;
}

@keyframes ssm-toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Pause progress on hover */
.ssm-toast:hover .ssm-toast-progress {
    animation-play-state: paused;
}

/* Success checkmark animation */
.ssm-toast-check {
    width: 18px;
    height: 18px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ssm-check-pop 0.4s ease 0.2s both;
}

@keyframes ssm-check-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.ssm-toast-check svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ssm-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .ssm-toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .ssm-toast-image {
        width: 50px;
        height: 50px;
    }

    .ssm-toast-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

/* ========================================
   SKYPOP FOOTER STYLES
   ======================================== */

/* Footer Container */
.ssm-footer {
    background: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------------------
   Features Bar (Top Section)
   ---------------------------------------- */
.ssm-footer-features {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
}

.ssm-footer-features-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ssm-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ssm-feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.ssm-feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.ssm-feature-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.ssm-feature-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* ----------------------------------------
   Main Footer Content
   ---------------------------------------- */
.ssm-footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

/* Logo Column */
.ssm-footer-brand {
    padding-right: 20px;
}

.ssm-footer-logo {
    margin-bottom: 20px;
}

.ssm-footer-logo img {
    height: 160px;
    width: auto;
    display: block;
}

.ssm-footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Social Icons */
.ssm-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.ssm-footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.ssm-footer-social a:hover {
    background: #e53935;
    color: #ffffff;
    transform: translateY(-3px);
}

.ssm-footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Link Columns */
.ssm-footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.ssm-footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e53935;
}

.ssm-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ssm-footer-links li {
    margin-bottom: 12px;
}

.ssm-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.ssm-footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* About Column */
.ssm-footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ----------------------------------------
   Footer Bottom Bar
   ---------------------------------------- */
.ssm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
}

.ssm-footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ssm-footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Payment Icons */
.ssm-footer-payments {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ssm-footer-payments svg {
    height: 24px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ssm-footer-payments svg:hover {
    opacity: 1;
}

/* ----------------------------------------
   Mobile Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
    .ssm-footer-features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }
    
    .ssm-footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .ssm-footer-features {
        padding: 25px 0;
    }
    
    .ssm-footer-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .ssm-feature-item {
        padding: 15px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
    }
    
    .ssm-footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 20px;
        text-align: center;
    }
    
    .ssm-footer-brand {
        padding-right: 0;
    }
    
    .ssm-footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .ssm-footer-logo img {
        height: 200px;
    }
    
    .ssm-footer-social {
        justify-content: center;
    }
    
    .ssm-footer-column h3 {
        text-align: center;
    }
    
    .ssm-footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ssm-footer-links {
        text-align: center;
    }
    
    .ssm-footer-links a:hover {
        padding-left: 0;
    }
    
    .ssm-footer-about p {
        text-align: center;
    }
    
    .ssm-footer-bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .ssm-feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .ssm-feature-text h4 {
        font-size: 14px;
    }
    
    .ssm-feature-text p {
        font-size: 12px;
    }
    
    .ssm-footer-logo img {
        height: 180px;
    }
    
    .ssm-footer-column h3 {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .ssm-footer-links a,
    .ssm-footer-about p,
    .ssm-footer-tagline {
        font-size: 13px;
    }
}

/* ============================================
   DMCA Form Mobile Styles
   ============================================ */

.dmca-form {
    max-width: 100%;
    margin: 0;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
}

.dmca-form h3 {
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
}

.dmca-form input[type="text"],
.dmca-form input[type="email"],
.dmca-form textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
}

.dmca-form .wpcf7-list-item {
    padding: 14px 16px;
}

.dmca-form input[type="submit"] {
    padding: 16px 24px;
    font-size: 1rem;
}

.wpcf7-form.sent .wpcf7-response-output {
    padding: 30px 25px !important;
    font-size: 1.1rem !important;
    max-width: 95% !important;
}

.wpcf7-form.sent .wpcf7-response-output::before {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* DMCA Mobile Fixes */

.dmca-form input[type="submit"] {
    background: #000 !important;
    color: #fff !important;
}

.dmca-form .wpcf7-quiz-label {
    background: none !important;
    padding: 0 !important;
    color: #333 !important;
}

/* Mobile toast */
.wpcf7-form.sent .wpcf7-response-output {
    top: 20px !important;
    right: -100% !important;
    max-width: calc(100% - 40px) !important;
    padding: 16px 20px !important;
    font-size: 0.95rem !important;
    animation: toastSlideInMobile 0.5s ease forwards, toastSlideOutMobile 0.5s ease 4s forwards !important;
}

@keyframes toastSlideInMobile {
    0% {
        right: -100%;
        opacity: 0;
    }
    100% {
        right: 20px;
        opacity: 1;
    }
}

@keyframes toastSlideOutMobile {
    0% {
        right: 20px;
        opacity: 1;
    }
    100% {
        right: -100%;
        opacity: 0;
    }
}


/* Contact Page Mobile Styles */
.contact-page {
    padding: 20px 15px 40px;
}

.contact-hero h1 {
    font-size: 1.75rem;
}

.contact-hero-subtitle {
    font-size: 1rem;
}

.contact-info-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-card {
    padding: 24px 20px;
}

.contact-main {
    grid-template-columns: 1fr;
    gap: 24px;
}

.contact-form-section {
    padding: 24px 20px;
    order: 1;
}

.contact-sidebar {
    order: 2;
}

.contact-form-section h2 {
    font-size: 1.4rem;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    font-size: 16px;
    padding: 14px;
}

