﻿.prod-outer {
    float: left;
    margin: 5px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
   width: 200px;
}

.prod-outer .prodpic {
    height: 200px;
	text-align: center;
}

.prod-outer .prodpic img {
    width: 198px;
    height: auto;
}

.prod-outer figcaption {
    float: left;
    background-color: #fff;
    position: relative;
    width: 100%;
    height: 25px;
    padding-left: 8px;
    padding-top: 6px;
    color: #000;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
}
.prod-outer .InBasket {
    position: absolute;
    z-index: 2;
    width: 30px;
    height: 23px;
    left: 4px;
    bottom: 0px;
    cursor: pointer;
    background: transparent url(../images/shopping-cart-16px.png) no-repeat scroll 6px 0px;
}

.prod-outer .productcost {
        color: #8a8e90;
    font-size: 13px;
    text-align: right;
    position: relative;
    height: 23px;
    float: left;
    width: 100%;
    padding-right: 7px;
    box-sizing: border-box;
	padding-top: 3px;
}

.prod-outer .prodsave {
		position: absolute;
		height: 19px;
		left: 0;
		top: 0;
		font-size: 13px;
		background-color: yellow;
		padding: 5px 5px 1px;
		color: #c51d1d;
		font-weight: bold;
}

  /* Indlejret produktvideo - klassebaseret (.pv/.pv-*), så flere videoer kan
     optræde på samme side. Markup: birds_produkt_video_html() i
     app/tasks/produkt.php; afspiller: initVideo() i include/js/shop-produkt.js. */
  .pv {
    position: relative;
    display: inline-block;
    max-width: 100%;
    background: #f1f3f0;
    cursor: pointer;
    user-select: none;
    border: 0;
  }

  .pv video { display: block; max-width: 100%; height: auto; }

  .pv-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 68px; height: 68px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
  }
  .pv-center svg {
    width: 34px; height: 34px;
    fill: #fff;
    stroke: #000;
    stroke-width: 0.7;
    stroke-linejoin: round;
  }

  .pv.paused .pv-center,
  .pv.active .pv-center { opacity: 1; }

  .pv-controls {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    opacity: 0;
    transition: opacity 0.25s;
  }
  .pv.paused .pv-controls,
  .pv.active .pv-controls { opacity: 1; }

  .pv-progress {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.35);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 7px;
  }
  .pv-progress:hover { height: 6px; margin-bottom: 5px; }
  .pv-bar {
    height: 100%; background: #fff;
    border-radius: 2px; width: 0;
    pointer-events: none;
  }
  .pv-progress:hover .pv-bar { background: #f00; }

  .pv-row {
    display: flex; align-items: center; justify-content: space-between;
  }
  .pv-time { color: #fff; font-size: 12px; font-family: Arial, sans-serif; }
  .pv-fs {
    background: none; border: none; cursor: pointer;
    padding: 2px; display: flex; align-items: center; line-height: 0;
  }
  .pv-fs svg { width: 20px; height: 20px; fill: #fff; }

  .pv:fullscreen { width: 100%; height: 100%; display: flex; align-items: center; }
  .pv:fullscreen video { width: 100%; height: 100%; object-fit: contain; }

@media(max-width: 850px) { 
	.prod-outer {			
		width: 180px;
	}
	.prod-outer .prodpic {
		height: 171px;
	}
	.prod-outer .prodpic img {
		width: 100%;
	}
}

@media(max-width: 570px) { 
	.prod-outer {
        width: 30%;
    }
	.prod-outer .prodpic {
        height: 140px;
    }
	.prod-outer figcaption {
		font-size: 13px;
	}
}

@media(max-width: 435px) { 
	.prod-outer {
        width: 47%;
    }
	 .prod-outer .prodpic img {
        width: 82%;
    }
}