#sf3d-storefront {
    font-family: 'Poppins', sans-serif;
    background: #111;
    color: #fff;
    padding: 20px;
}

/* Header */
.sf3d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff6f61, #ffcc00);
    padding: 15px;
    border-radius: 8px;
    transform: perspective(800px) rotateX(5deg);
}
.sf3d-nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}
.sf3d-nav a:hover {
    transform: scale(1.2) rotateY(10deg);
}

/* Categories */
.sf3d-categories {
    text-align: center;
    margin: 20px 0;
}
.sf3d-btn {
    margin: 5px;
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    transition: transform 0.3s, background 0.3s;
}
.sf3d-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: #ff6f61;
}

/* Products */
.sf3d-products {
     display: flex;
    flex-wrap: wrap;       /* allows wrapping if more than 2 */
    
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;     /* cards stretch to same height */
    width: 100%;              /* parent takes full width of its container */
    box-sizing: border-box;
}
.sf3d-card {
     flex: 0 0 48%;            /* two cards per row, relative to parent */
    box-sizing: border-box;
    background: #222;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.5s;
}
/* Image scaling */
.sf3d-card img {
    max-width: 100%;          /* image scales within card */
    height: auto;             /* maintain aspect ratio */
    display: block;
    margin: 0 auto 10px;
}

/* Text scaling */
.sf3d-card h3, 
.sf3d-card p {
    font-size: 1rem;          /* relative to parent font size */
    word-wrap: break-word;
    color:white;
    
}
.sf3d-card h1 {
    font-size: 3.5rem;          /* relative to parent font size */
    word-wrap: break-word;
    color:white;
    
}
.sf3d-card:hover {
    transform: rotateY(15deg) scale(1.05);
}

/* Highlight */
.sf3d-highlight {
    text-align: center;
    margin: 40px 0;
}
.sf3d-highlight-card {
    background: #333;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    transition: transform 0.5s;
}
.sf3d-highlight-card:hover {
    transform: rotateX(10deg) scale(1.1);
}
.sf3d-buy-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #ffcc00;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.sf3d-buy-btn:hover {
    background: #ff6f61;
}

/* Footer */
.sf3d-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.8;
}
