/* Shop Page Specific Styles */
/* shop.css with updated rose pink integration */

.shop-page {
    background-color: var(--off-white);
}

/* Shop Hero */
.shop-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-deep-blush);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
    padding-top: 6rem;
}

.shop-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* CasedUp By D brand logo - uniform across shop, gallery, custom order */
.casedupbyd-hero-logo {
    display: block;
    max-width: 165px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 3px 10px rgba(90, 61, 122, 0.2));
    transition: transform 0.3s ease;
}
.casedupbyd-hero-logo:hover {
    transform: scale(1.05);
}
.casedupbyd-hero-logo-wrap {
    display: block;
    text-decoration: none;
    line-height: 0;
}
.shop-hero .casedupbyd-hero-logo {
    max-width: 185px;
    margin-bottom: 1rem;
}
.gallery-hero .casedupbyd-hero-logo,
.custom-order-hero .casedupbyd-hero-logo {
    max-width: 160px;
    margin-bottom: 1rem;
}

.shop-hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    color: white;
}

.shop-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.shop-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-hero {
    margin-top: 2rem;
    background: white;
    color: var(--deep-plum);
    border: 2px solid white;
}

.btn-hero:hover {
    background: transparent;
    color: white;
}

.resin-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.resin-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 187, 208, 0.4) 0%, rgba(180, 151, 214, 0.2) 70%, transparent 100%);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.resin-bubble:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.resin-bubble:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.resin-bubble:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.resin-bubble:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 25%;
    animation-delay: 6s;
}

/* Spinning Case Display / Orbit */
.case-display-section {
    position: relative;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(247, 240, 252, 0.3) 0%, rgba(252, 228, 236, 0.2) 100%);
}

.case-orbit {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 4rem auto 8rem;
    perspective: 1200px;
}

.case-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 2px dashed rgba(180, 151, 214, 0.2);
    border-radius: 50%;
    animation: rotateRing 40s linear infinite;
}

@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.case-item {
    position: absolute;
    width: 180px;
    height: 200px;
    top: 50%;
    left: 50%;
    margin: -100px 0 0 -90px;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(123, 91, 161, 0.15);
    animation: orbit 30s linear infinite;
}

.case-item:nth-child(2) {
    animation-delay: 0s;
    transform: rotate(0deg) translateX(250px) rotate(0deg);
}

.case-item:nth-child(3) {
    animation-delay: -5s;
    transform: rotate(60deg) translateX(250px) rotate(-60deg);
}

.case-item:nth-child(4) {
    animation-delay: -10s;
    transform: rotate(120deg) translateX(250px) rotate(-120deg);
}

.case-item:nth-child(5) {
    animation-delay: -15s;
    transform: rotate(180deg) translateX(250px) rotate(-180deg);
}

.case-item:nth-child(6) {
    animation-delay: -20s;
    transform: rotate(240deg) translateX(250px) rotate(-240deg);
}

.case-item:nth-child(7) {
    animation-delay: -25s;
    transform: rotate(300deg) translateX(250px) rotate(-300deg);
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(250px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(250px) rotate(-360deg); }
}

.case-item:hover {
    transform: scale(1.15) translateZ(50px);
    z-index: 10;
    animation-play-state: paused;
    box-shadow: 0 20px 50px rgba(180, 151, 214, 0.3), 
                0 0 20px rgba(248, 187, 208, 0.2);
}

.case-item:hover .case-label {
    opacity: 1;
    transform: translateY(0);
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
    display: block;
}

.case-item:hover .case-image {
    transform: scale(1.05);
}

.case-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(90, 61, 122, 0.95), rgba(90, 61, 122, 0.8));
    color: white;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: var(--transition-medium);
    transform: translateY(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Image loading states */
.case-image.loading {
    opacity: 0;
    animation: shimmerPulse 1.5s infinite;
}

.case-image.loaded {
    opacity: 1;
    animation: fadeInImage 0.5s ease;
}

@keyframes shimmerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes fadeInImage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.center-button {
    text-align: center;
    margin-top: 3rem;
}

.case-orbit:hover .case-item {
    animation-play-state: paused;
}

.case-orbit:hover .case-ring {
    animation-play-state: paused;
}

.case-item:focus-visible {
    outline: 3px solid var(--lavender);
    outline-offset: 4px;
    border-radius: 15px;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.collection-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-medium);
    border: 1px solid rgba(248, 187, 208, 0.1);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-purple), var(--shadow-rose);
    border-color: rgba(180, 151, 214, 0.2);
}

.collection-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(123, 91, 161, 0.5) 100%);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.collection-badge {
    background: var(--gradient-purple-rose);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.collection-info {
    padding: 1.5rem;
}

.collection-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--deep-plum);
}

.collection-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--soft-purple);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-medium);
}

.collection-link:hover {
    color: var(--blush-rose);
    transform: translateX(5px);
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Interactive Case Builder */
.interactive-display {
    background: linear-gradient(135deg, rgba(247, 240, 252, 0.5) 0%, rgba(252, 228, 236, 0.3) 100%);
    border-radius: 20px;
    margin: 3rem auto;
    max-width: var(--content-width);
}

.case-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.builder-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.phone-model {
    width: 300px;
    height: 500px;
    background: #f5f5f5;
    border-radius: 40px;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(123, 91, 161, 0.1),
        0 20px 40px rgba(123, 91, 161, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-preview {
    width: 280px;
    height: 480px;
    border-radius: 35px;
    background: var(--gradient-rose-mist);
    position: relative;
    overflow: hidden;
    border: 10px solid var(--light-lavender);
}

.case-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    background: var(--gradient-purple-rose);
}

.builder-options {
    padding: 1rem;
}

.option-group {
    margin-bottom: 2rem;
}

.option-group h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--deep-plum);
}

.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: var(--transition-medium);
}

.color-option.active {
    background-color: rgba(248, 187, 208, 0.1);
    border: 1px solid var(--blush-rose);
}

.color-option:hover:not(.active) {
    background-color: rgba(180, 151, 214, 0.1);
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(123, 91, 161, 0.1);
}

.element-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.element-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-medium);
    min-width: 80px;
}

.element-option.active, .element-option:hover {
    border-color: var(--lavender);
    background: var(--gradient-rose-mist);
}

.element-option i {
    font-size: 1.5rem;
    background: var(--gradient-purple-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.builder-action {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Process Section */
.process-section {
    background-color: white;
    border-radius: 20px;
    margin: 3rem auto;
    max-width: var(--content-width);
    box-shadow: var(--shadow-soft);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-purple-rose);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.5;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-purple-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.process-step h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    color: var(--deep-plum);
}

/* Reviews Section */
.reviews-section {
    background: linear-gradient(135deg, rgba(180, 151, 214, 0.1) 0%, rgba(248, 187, 208, 0.05) 100%);
    border-radius: 20px;
    margin: 3rem auto;
    max-width: var(--content-width);
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(248, 187, 208, 0.1);
}

.review-stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--medium-gray);
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.review-author span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Responsive Design for Shop */
@media (max-width: 1024px) {
    .case-builder {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-model {
        width: 250px;
        height: 420px;
    }
    
    .case-preview {
        width: 230px;
        height: 400px;
    }
    
    .spinning-wheel-section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 768px) {
    .shop-title {
        font-size: 2.5rem;
    }
    
    .shop-subtitle {
        font-size: 1rem;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .collection-card {
        padding: 2rem 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .builder-action {
        flex-direction: column;
    }
    
    /* Spinning wheel responsive */
    .case-orbit {
        max-width: 400px;
        height: 400px;
        margin: 3rem auto 10rem;
    }
    
    .case-ring {
        width: 350px;
        height: 350px;
    }
    
    .case-item {
        width: 140px;
        height: 160px;
        margin: -80px 0 0 -70px;
    }
    
    .case-item:nth-child(2) { transform: rotate(0deg) translateX(175px) rotate(0deg); }
    .case-item:nth-child(3) { transform: rotate(60deg) translateX(175px) rotate(-60deg); }
    .case-item:nth-child(4) { transform: rotate(120deg) translateX(175px) rotate(-120deg); }
    .case-item:nth-child(5) { transform: rotate(180deg) translateX(175px) rotate(-180deg); }
    .case-item:nth-child(6) { transform: rotate(240deg) translateX(175px) rotate(-240deg); }
    .case-item:nth-child(7) { transform: rotate(300deg) translateX(175px) rotate(-300deg); }
    
    @keyframes orbit {
        from { transform: rotate(0deg) translateX(175px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(175px) rotate(-360deg); }
    }
}

@media (max-width: 480px) {
    .case-display-section {
        padding: 3rem 1rem;
    }
    
    .case-orbit {
        max-width: 320px;
        height: 320px;
        margin: 2rem auto 12rem;
    }
    
    .case-ring {
        width: 260px;
        height: 260px;
    }
    
    .case-item {
        width: 90px;
        height: 110px;
        margin: -55px 0 0 -45px;
    }
    
    .case-item:nth-child(2) { transform: rotate(0deg) translateX(130px) rotate(0deg); }
    .case-item:nth-child(3) { transform: rotate(60deg) translateX(130px) rotate(-60deg); }
    .case-item:nth-child(4) { transform: rotate(120deg) translateX(130px) rotate(-120deg); }
    .case-item:nth-child(5) { transform: rotate(180deg) translateX(130px) rotate(-180deg); }
    .case-item:nth-child(6) { transform: rotate(240deg) translateX(130px) rotate(-240deg); }
    .case-item:nth-child(7) { transform: rotate(300deg) translateX(130px) rotate(-300deg); }
    
    @keyframes orbit {
        from { transform: rotate(0deg) translateX(130px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
    }
    
    .case-label {
        font-size: 0.8rem;
        padding: 0.6rem 0.3rem;
    }
    
    .shop-title {
        font-size: 1.8rem;
    }
    
    .shop-subtitle {
        font-size: 0.85rem;
    }
}

/* Touch-friendly enhancements for shop */
@media (hover: none) and (pointer: coarse) {
    .case-item,
    .collection-card,
    .filter-btn {
        -webkit-tap-highlight-color: rgba(180, 151, 214, 0.2);
    }
    
    .case-item:active {
        transform: scale(0.95);
    }
    
    .collection-card:active {
        transform: translateY(-2px);
    }
    
    .filter-btn {
        min-height: 44px;
    }
}
